[1m[35m (34.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (23.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (71.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (72.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kIxL/dZMaVJTWBr4W2qgleXTF0FNJwRyi6T63aw4kb7A5sNDaVomm"], ["created_at", "2019-11-21 15:40:59.893519"], ["updated_at", "2019-11-21 15:40:59.893519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (20.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:40:59.968341"], ["updated_at", "2019-11-21 15:40:59.968341"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.018197"], ["last_sign_in_at", "2019-11-21 15:41:00.018197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.018916"], ["id", 1]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35mSQL (34.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1], ["room_id", 1], ["created_at", "2019-11-21 15:41:00.067385"], ["updated_at", "2019-11-21 15:41:00.067385"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 62ms (ActiveRecord: 36.1ms)
[1m[36mAppointment Load (10.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$GHyqo9ppOJSlzdmXnH0Auu1EO37qv2OHBFmj3S/fQ7RKAU50T.y96"], ["created_at", "2019-11-21 15:41:00.152539"], ["updated_at", "2019-11-21 15:41:00.152539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.154865"], ["updated_at", "2019-11-21 15:41:00.154865"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.157594"], ["last_sign_in_at", "2019-11-21 15:41:00.157594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.158330"], ["id", 2]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"2"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2], ["room_id", 2], ["created_at", "2019-11-21 15:41:00.163397"], ["updated_at", "2019-11-21 15:41:00.163397"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xSg2DTVJvvEXhyXctMI16eUuxWXCQgMBkM776G18e/LQr4t11rU0i"], ["created_at", "2019-11-21 15:41:00.172239"], ["updated_at", "2019-11-21 15:41:00.172239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.174676"], ["updated_at", "2019-11-21 15:41:00.174676"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.177498"], ["last_sign_in_at", "2019-11-21 15:41:00.177498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.178051"], ["id", 3]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"3"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 3], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VDrzx6z34wPbO2ZceyC0re1qePIaaojfKqYplOUEnzWEr0g1UV11a"], ["created_at", "2019-11-21 15:41:00.187412"], ["updated_at", "2019-11-21 15:41:00.187412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.189594"], ["updated_at", "2019-11-21 15:41:00.189594"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.192255"], ["last_sign_in_at", "2019-11-21 15:41:00.192255"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.192823"], ["id", 4]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"4"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$UB4SGaGv3sAvjOY75pVk1u6qF9L43YFf9tQUqR6UUuxQEPGlpqhWS"], ["created_at", "2019-11-21 15:41:00.203320"], ["updated_at", "2019-11-21 15:41:00.203320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.205506"], ["updated_at", "2019-11-21 15:41:00.205506"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 5], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 5], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 5], ["room_id", 5], ["created_at", "2019-11-21 15:41:00.209997"], ["updated_at", "2019-11-21 15:41:00.209997"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/5” for 127.0.0.1 at 2019-11-21 12:41:00 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.212505"], ["last_sign_in_at", "2019-11-21 15:41:00.212505"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.213145"], ["id", 5]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"5"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 5], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '5')[0m
Rendered appointments/show.html.erb within layouts/application (77.0ms)
Rendered layouts/_header-user.html.erb (2.8ms)
Completed 200 OK in 13727ms (Views: 13667.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1WBmYqnYQhxJBV6f762fQuijnOuF3aDklID66Z3VrKcwAj9nSS3ba"], ["created_at", "2019-11-21 15:41:13.951085"], ["updated_at", "2019-11-21 15:41:13.951085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:13.953445"], ["updated_at", "2019-11-21 15:41:13.953445"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 6], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 6], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 6], ["room_id", 6], ["created_at", "2019-11-21 15:41:13.957955"], ["updated_at", "2019-11-21 15:41:13.957955"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 6], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 6], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 6], ["room_id", 6], ["created_at", "2019-11-21 15:41:13.962721"], ["updated_at", "2019-11-21 15:41:13.962721"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 12:41:13 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:13.965143"], ["last_sign_in_at", "2019-11-21 15:41:13.965143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:13.965648"], ["id", 6]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 6]] Rendered appointments/my_appointments.html.erb within layouts/application (3.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 84ms (Views: 4.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2oqIzOfkTiXC68GhWFxf.OHmHvgY6KqR4uzgX6Tfr6q4iygekMCHq"], ["created_at", "2019-11-21 15:41:14.059531"], ["updated_at", "2019-11-21 15:41:14.059531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.062597"], ["updated_at", "2019-11-21 15:41:14.062597"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 7], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 7], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 7], ["room_id", 7], ["created_at", "2019-11-21 15:41:14.066961"], ["updated_at", "2019-11-21 15:41:14.066961"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 7], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 7], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 7], ["room_id", 7], ["created_at", "2019-11-21 15:41:14.072433"], ["updated_at", "2019-11-21 15:41:14.072433"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.075896"], ["last_sign_in_at", "2019-11-21 15:41:14.075896"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.076536"], ["id", 7]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 7]] Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZAh0SDawSCZOvh2jX8HXHudc6p6JQJqrIhl/UG3PeeLZ4Mt49ze7K"], ["created_at", "2019-11-21 15:41:14.090033"], ["updated_at", "2019-11-21 15:41:14.090033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.093136"], ["updated_at", "2019-11-21 15:41:14.093136"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 8], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 8], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 8], ["room_id", 8], ["created_at", "2019-11-21 15:41:14.097216"], ["updated_at", "2019-11-21 15:41:14.097216"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/8” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.099387"], ["last_sign_in_at", "2019-11-21 15:41:14.099387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.099981"], ["id", 8]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"8"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 8], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 8]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m2M/EJYvwEt7Zb2rY0dV7ey2cmgkSaQosZUOc/qS.2k9FboHICF1y"], ["created_at", "2019-11-21 15:41:14.114725"], ["updated_at", "2019-11-21 15:41:14.114725"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.117191"], ["last_sign_in_at", "2019-11-21 15:41:14.117191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.117806"], ["id", 9]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (13.1ms) Rendered layouts/_header-admin.html.erb (1.4ms)
Completed 200 OK in 127ms (Views: 73.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7KOfaKRkEF2P8Gtzsjpel.rgPRl8Rm6nxbZWqBlOVV/zvTyjEQ9P2"], ["created_at", "2019-11-21 15:41:14.257058"], ["updated_at", "2019-11-21 15:41:14.257058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.259597"], ["last_sign_in_at", "2019-11-21 15:41:14.259597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.260406"], ["id", 10]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jPLmwDDmMdthI2Cssin.aeaPgmwYxBY8qNlD02VroztIAp1iS.aE2"], ["created_at", "2019-11-21 15:41:14.270863"], ["updated_at", "2019-11-21 15:41:14.270863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.273280"], ["last_sign_in_at", "2019-11-21 15:41:14.273280"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.273780"], ["id", 11]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IneFAaVveI7hPBC/YA8dduz2RRZ43kr2lWYg9cADkBKTghsa5lutm"], ["created_at", "2019-11-21 15:41:14.303744"], ["updated_at", "2019-11-21 15:41:14.303744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.306015"], ["last_sign_in_at", "2019-11-21 15:41:14.306015"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.306541"], ["id", 12]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tq0gUJeJavfRu4MBjNDSxezCWTXo8zjhkiozkGTdNrerQpDEKev4."], ["created_at", "2019-11-21 15:41:14.328094"], ["updated_at", "2019-11-21 15:41:14.328094"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.330337"], ["updated_at", "2019-11-21 15:41:14.330337"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/9” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.332454"], ["last_sign_in_at", "2019-11-21 15:41:14.332454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.332913"], ["id", 13]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"9"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 9], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rXcmDZbjU6l2m/0e3e6Qce.6ID7zPGrOOuICoqVmpXz3aD4zx3ZzW"], ["created_at", "2019-11-21 15:41:14.363337"], ["updated_at", "2019-11-21 15:41:14.363337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.365536"], ["updated_at", "2019-11-21 15:41:14.365536"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/10” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.367814"], ["last_sign_in_at", "2019-11-21 15:41:14.367814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.368388"], ["id", 14]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"10"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 10], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.378376"], ["updated_at", "2019-11-21 15:41:14.378376"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/11” for 127.0.0.1 at 2019-11-21 12:41:14 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"11"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7aAI2gvWYF0OCMHv9nokuuPbDnwSHrb0oOkxU9VfFXKjZw7RlSJT6"], ["created_at", "2019-11-21 15:41:14.394365"], ["updated_at", "2019-11-21 15:41:14.394365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.396700"], ["updated_at", "2019-11-21 15:41:14.396700"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/12/edit” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.398884"], ["last_sign_in_at", "2019-11-21 15:41:14.398884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.399482"], ["id", 15]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"12"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 12], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 22ms (Views: 3.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S3WUTBT8vFObZpgwipA9iOtU7Aa3GlXKBeTjXnmTUdP5phxjvUcnO"], ["created_at", "2019-11-21 15:41:14.430784"], ["updated_at", "2019-11-21 15:41:14.430784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.433016"], ["updated_at", "2019-11-21 15:41:14.433016"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/13/edit” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.435250"], ["last_sign_in_at", "2019-11-21 15:41:14.435250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.435781"], ["id", 16]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"13"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 13], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.447591"], ["updated_at", "2019-11-21 15:41:14.447591"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/14” for 127.0.0.1 at 2019-11-21 12:41:14 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"14"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xV187Va16LSN8fjxz4JTweyG5GzjOLFJozD5OSTElFWvsUkxhqThi"], ["created_at", "2019-11-21 15:41:14.458812"], ["updated_at", "2019-11-21 15:41:14.458812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.461839"], ["last_sign_in_at", "2019-11-21 15:41:14.461839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.462344"], ["id", 17]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.465621"], ["updated_at", "2019-11-21 15:41:14.465621"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.w71mJsRXoN66rtkhHR/9uFS4E.FehxHoRt/b9PcLAcrQcVUD1eLC"], ["created_at", "2019-11-21 15:41:14.473434"], ["updated_at", "2019-11-21 15:41:14.473434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.476402"], ["last_sign_in_at", "2019-11-21 15:41:14.476402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.477011"], ["id", 18]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.480220"], ["updated_at", "2019-11-21 15:41:14.480220"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8UvBzx1oUwcBNuZm1yJc6OWIkuFv0Jpgq12AwzgWsXUYLc.0n9GPu"], ["created_at", "2019-11-21 15:41:14.487914"], ["updated_at", "2019-11-21 15:41:14.487914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.490585"], ["last_sign_in_at", "2019-11-21 15:41:14.490585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.491192"], ["id", 19]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (60.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 62ms (ActiveRecord: 60.5ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/NOjI1.vMgiY2Tec6SRjjuzq39oCVwJkcl5HuWlkyFwdVs5fT.YnG"], ["created_at", "2019-11-21 15:41:14.566644"], ["updated_at", "2019-11-21 15:41:14.566644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.569253"], ["last_sign_in_at", "2019-11-21 15:41:14.569253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.569935"], ["id", 20]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P/qrGf.TyifUscMt2KIH0OAI8auxrGIojyA1Lh1NNXNcAxqqC5.dy"], ["created_at", "2019-11-21 15:41:14.581756"], ["updated_at", "2019-11-21 15:41:14.581756"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.584303"], ["last_sign_in_at", "2019-11-21 15:41:14.584303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.584745"], ["id", 21]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OelyAn9Xm652tIhNkMngkuBNonR5E4UayFK3d8k6PgDJE59OsP7T2"], ["created_at", "2019-11-21 15:41:14.596093"], ["updated_at", "2019-11-21 15:41:14.596093"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.598398"], ["updated_at", "2019-11-21 15:41:14.598398"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/17” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.600864"], ["last_sign_in_at", "2019-11-21 15:41:14.600864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.601347"], ["id", 22]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"17"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 17], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 15:41:14.606205"], ["id", 17]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/17 Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VGKrLwwLR29E6ANjhsjz8.FH9yOeczbbqEmMEoE8Z.uB9UGw6cZy2"], ["created_at", "2019-11-21 15:41:14.616517"], ["updated_at", "2019-11-21 15:41:14.616517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.619294"], ["updated_at", "2019-11-21 15:41:14.619294"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/18” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.622353"], ["last_sign_in_at", "2019-11-21 15:41:14.622353"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.622997"], ["id", 23]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"18"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 18], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 15:41:14.628439"], ["id", 18]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/18 Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7yco.eoP.widVJMlhVfFMuETJdTFv5WaLLSi2k.ah6mwUP0Y8ty0y"], ["created_at", "2019-11-21 15:41:14.639040"], ["updated_at", "2019-11-21 15:41:14.639040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.642321"], ["updated_at", "2019-11-21 15:41:14.642321"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/19” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.645690"], ["last_sign_in_at", "2019-11-21 15:41:14.645690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.646387"], ["id", 24]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"19"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 19], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SRBELFNDs.CskL54uo3tReJ4Xzy9Leargx7P8qQBdXWk6jm8g6axu"], ["created_at", "2019-11-21 15:41:14.662177"], ["updated_at", "2019-11-21 15:41:14.662177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.664387"], ["updated_at", "2019-11-21 15:41:14.664387"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/20” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.666692"], ["last_sign_in_at", "2019-11-21 15:41:14.666692"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.667262"], ["id", 25]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"20"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 20], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UZUBJVHjbegkq5kK0tC8Xejwn.3yrdkPTYLr4ZluzfVYJk4uQrqrW"], ["created_at", "2019-11-21 15:41:14.681759"], ["updated_at", "2019-11-21 15:41:14.681759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.684409"], ["last_sign_in_at", "2019-11-21 15:41:14.684409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.684880"], ["id", 26]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d0B2W/gkL5ORJVK7Wx5Nr.Q0lZcJY6usz2qhwyqMqL0lRpnFvAT9i"], ["created_at", "2019-11-21 15:41:14.695745"], ["updated_at", "2019-11-21 15:41:14.695745"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.697941"], ["updated_at", "2019-11-21 15:41:14.697941"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/21” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.699883"], ["last_sign_in_at", "2019-11-21 15:41:14.699883"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.700418"], ["id", 27]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"21"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 21], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 21]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$36fKXwivMR7nPynSMLKIcujH0UUO1RjchHrqDExPCsbFiu9ia3d1y"], ["created_at", "2019-11-21 15:41:14.712186"], ["updated_at", "2019-11-21 15:41:14.712186"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.714503"], ["updated_at", "2019-11-21 15:41:14.714503"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/22” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.716526"], ["last_sign_in_at", "2019-11-21 15:41:14.716526"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.717076"], ["id", 28]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"22"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 22], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 22]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$phnfSAB3bUIby7TqWWA0S.ZWTR0vVwvdQaMUIbF2xozoX0I5jNm5m"], ["created_at", "2019-11-21 15:41:14.729394"], ["updated_at", "2019-11-21 15:41:14.729394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.731591"], ["updated_at", "2019-11-21 15:41:14.731591"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/23” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.733402"], ["last_sign_in_at", "2019-11-21 15:41:14.733402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.733871"], ["id", 29]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"23"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qFWr/jzpi00IThXnrHWcOOGah6ursVyWLD8F7EEeLcY58e1w/6rsu"], ["created_at", "2019-11-21 15:41:14.743328"], ["updated_at", "2019-11-21 15:41:14.743328"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.745518"], ["updated_at", "2019-11-21 15:41:14.745518"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/24” for 127.0.0.1 at 2019-11-21 12:41:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.747359"], ["last_sign_in_at", "2019-11-21 15:41:14.747359"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.748016"], ["id", 30]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"24"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yiJIRpE.leYZw3uvy6.zROb4ilOmqo3kPEAa/nohk.45S4XRQncwK"], ["created_at", "2019-11-21 16:29:14.436582"], ["updated_at", "2019-11-21 16:29:14.436582"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.439389"], ["updated_at", "2019-11-21 16:29:14.439389"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.465350"], ["last_sign_in_at", "2019-11-21 16:29:14.465350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.466357"], ["id", 31]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"25"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 25], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 31], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 31], ["room_id", 25], ["created_at", "2019-11-21 16:29:14.512914"], ["updated_at", "2019-11-21 16:29:14.512914"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 27ms (ActiveRecord: 2.3ms)
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 25], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yCT2fOV/8eqGEt98FAhk6.1/Og8ojp93NhCKEHnP96Jc2H8mkQKLS"], ["created_at", "2019-11-21 16:29:14.528808"], ["updated_at", "2019-11-21 16:29:14.528808"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.531219"], ["updated_at", "2019-11-21 16:29:14.531219"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.534779"], ["last_sign_in_at", "2019-11-21 16:29:14.534779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.535365"], ["id", 32]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"26"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 26], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 32], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 32], ["room_id", 26], ["created_at", "2019-11-21 16:29:14.540836"], ["updated_at", "2019-11-21 16:29:14.540836"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rbNnbx8fZ967riiy/8JdZ.BDr42FYN.ZmKciJyPhJksgEIsqfiZSO"], ["created_at", "2019-11-21 16:29:14.550465"], ["updated_at", "2019-11-21 16:29:14.550465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.552875"], ["updated_at", "2019-11-21 16:29:14.552875"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.555876"], ["last_sign_in_at", "2019-11-21 16:29:14.555876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.556614"], ["id", 33]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"27"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 27], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sSb9FlVKjKdPQqmWSykuzuWTIPQrFq0RF.WhjcN.TIOwRrSTHrkTO"], ["created_at", "2019-11-21 16:29:14.567424"], ["updated_at", "2019-11-21 16:29:14.567424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.569600"], ["updated_at", "2019-11-21 16:29:14.569600"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.571949"], ["last_sign_in_at", "2019-11-21 16:29:14.571949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.572584"], ["id", 34]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"28"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JadAUe5n1sXxbW63IjhDrelBA/k15bs5oc/V/NAbAaIadUHLeDaQa"], ["created_at", "2019-11-21 16:29:14.583706"], ["updated_at", "2019-11-21 16:29:14.583706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.585937"], ["updated_at", "2019-11-21 16:29:14.585937"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 29], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 35], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 35], ["room_id", 29], ["created_at", "2019-11-21 16:29:14.589668"], ["updated_at", "2019-11-21 16:29:14.589668"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/29” for 127.0.0.1 at 2019-11-21 13:29:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.592071"], ["last_sign_in_at", "2019-11-21 16:29:14.592071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.592557"], ["id", 35]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"29"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 29], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '29')[0m
Rendered appointments/show.html.erb within layouts/application (23.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 410ms (Views: 390.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$L5pmW9fKLOgewiI.7c2xsufW7Enog1zbizBYPb9sKEf0flrJCiCX2"], ["created_at", "2019-11-21 16:29:15.013000"], ["updated_at", "2019-11-21 16:29:15.013000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.015829"], ["updated_at", "2019-11-21 16:29:15.015829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 30], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 36], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 36], ["room_id", 30], ["created_at", "2019-11-21 16:29:15.021737"], ["updated_at", "2019-11-21 16:29:15.021737"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 30], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 36], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 36], ["room_id", 30], ["created_at", "2019-11-21 16:29:15.025768"], ["updated_at", "2019-11-21 16:29:15.025768"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.028041"], ["last_sign_in_at", "2019-11-21 16:29:15.028041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.028556"], ["id", 36]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 36]] Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 4.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$POiOrqMweyaQ3oCN4rC6gO5456Lx4MdqM5F8xU/2bnPfE5uSVD7qO"], ["created_at", "2019-11-21 16:29:15.102831"], ["updated_at", "2019-11-21 16:29:15.102831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.105159"], ["updated_at", "2019-11-21 16:29:15.105159"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 31], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 37], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 37], ["room_id", 31], ["created_at", "2019-11-21 16:29:15.109120"], ["updated_at", "2019-11-21 16:29:15.109120"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 31], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 37], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 37], ["room_id", 31], ["created_at", "2019-11-21 16:29:15.113030"], ["updated_at", "2019-11-21 16:29:15.113030"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.115811"], ["last_sign_in_at", "2019-11-21 16:29:15.115811"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.116535"], ["id", 37]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 37]] Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2oQ50qWKbfku0ZOIauoRzOkAH.0m3vnbXitAicFSWBgd8C7KZJMPa"], ["created_at", "2019-11-21 16:29:15.132665"], ["updated_at", "2019-11-21 16:29:15.132665"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.135485"], ["updated_at", "2019-11-21 16:29:15.135485"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 32], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 38], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 38], ["room_id", 32], ["created_at", "2019-11-21 16:29:15.139218"], ["updated_at", "2019-11-21 16:29:15.139218"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/16” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.141365"], ["last_sign_in_at", "2019-11-21 16:29:15.141365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.141856"], ["id", 38]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"16"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 16], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 16]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YGH9gVnBaVybfMIEpqLVMeBQzvQ5tCIvWnQwPmdWM0XpNOEGZvyhO"], ["created_at", "2019-11-21 16:29:15.156888"], ["updated_at", "2019-11-21 16:29:15.156888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.159326"], ["last_sign_in_at", "2019-11-21 16:29:15.159326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.159870"], ["id", 39]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.9ms) Rendered layouts/_header-admin.html.erb (1.4ms)
Completed 200 OK in 47ms (Views: 28.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iGSPgOL6U/Qe3GQovRFM9OYGX1mGwGIePamH9JheEejNgXQsjcOui"], ["created_at", "2019-11-21 16:29:15.217236"], ["updated_at", "2019-11-21 16:29:15.217236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.219687"], ["updated_at", "2019-11-21 16:29:15.219687"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 33], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 40], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 40], ["room_id", 33], ["created_at", "2019-11-21 16:29:15.223577"], ["updated_at", "2019-11-21 16:29:15.223577"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 33], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 40], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 40], ["room_id", 33], ["created_at", "2019-11-21 16:29:15.227447"], ["updated_at", "2019-11-21 16:29:15.227447"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.230699"], ["last_sign_in_at", "2019-11-21 16:29:15.230699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.231721"], ["id", 40]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 33], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 40], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 40], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7IQz92FQc2mV2JOEvijisObltk0mzmEodgkOXjAJoLWzFml6gAw0m"], ["created_at", "2019-11-21 16:29:15.249386"], ["updated_at", "2019-11-21 16:29:15.249386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.252226"], ["last_sign_in_at", "2019-11-21 16:29:15.252226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.252777"], ["id", 41]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (24.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 94ms (Views: 77.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iol.Aosf7I/7YY8uFuU6m.eS9i8kNM5SrmX9QdEIK0WIXrh5NDXBi"], ["created_at", "2019-11-21 16:29:15.372077"], ["updated_at", "2019-11-21 16:29:15.372077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.374542"], ["last_sign_in_at", "2019-11-21 16:29:15.374542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.375033"], ["id", 42]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sdrwA/9J9ykdAakVfvMmHuksFLJKbpYMcN149Gb/W0A8o6N8Hb55G"], ["created_at", "2019-11-21 16:29:15.387076"], ["updated_at", "2019-11-21 16:29:15.387076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.389824"], ["last_sign_in_at", "2019-11-21 16:29:15.389824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.390374"], ["id", 43]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 28ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L4pHC2IHq/zAqUlMUp.U5.jfMeQJjsdtIMNkQmZJ5XH6rcLIefiCG"], ["created_at", "2019-11-21 16:29:15.426410"], ["updated_at", "2019-11-21 16:29:15.426410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.428963"], ["last_sign_in_at", "2019-11-21 16:29:15.428963"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.429488"], ["id", 44]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m5vqB1LZFo40MBppe//FcO8you/Epk/PCcdprbCtVOrRwa3VgU/sa"], ["created_at", "2019-11-21 16:29:15.451369"], ["updated_at", "2019-11-21 16:29:15.451369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.453487"], ["updated_at", "2019-11-21 16:29:15.453487"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/34” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.455591"], ["last_sign_in_at", "2019-11-21 16:29:15.455591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.456053"], ["id", 45]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"34"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 34], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RmizhZjI6FdQw6rdEw36HOH0mn7rDcXCUvHiKqr9rxsL8Z5OkUS3O"], ["created_at", "2019-11-21 16:29:15.485539"], ["updated_at", "2019-11-21 16:29:15.485539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.487867"], ["updated_at", "2019-11-21 16:29:15.487867"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/35” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.490448"], ["last_sign_in_at", "2019-11-21 16:29:15.490448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.491027"], ["id", 46]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"35"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 35], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.501128"], ["updated_at", "2019-11-21 16:29:15.501128"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/36” for 127.0.0.1 at 2019-11-21 13:29:15 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"36"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rR4Rft3W.bPAx8cqLXidA.lSY//Qu.cIziCK0aQwvsuFKerip9tg6"], ["created_at", "2019-11-21 16:29:15.511926"], ["updated_at", "2019-11-21 16:29:15.511926"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.514277"], ["updated_at", "2019-11-21 16:29:15.514277"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/37/edit” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.517360"], ["last_sign_in_at", "2019-11-21 16:29:15.517360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.517921"], ["id", 47]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"37"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 37], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tT/NCB1Ub9JhOMrDlp/hfe5E7jEQ8DMlabfhwv9a7yatRk244L4IW"], ["created_at", "2019-11-21 16:29:15.548194"], ["updated_at", "2019-11-21 16:29:15.548194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.551297"], ["updated_at", "2019-11-21 16:29:15.551297"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/38/edit” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.554068"], ["last_sign_in_at", "2019-11-21 16:29:15.554068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.554605"], ["id", 48]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"38"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 38], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.566161"], ["updated_at", "2019-11-21 16:29:15.566161"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/39” for 127.0.0.1 at 2019-11-21 13:29:15 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"39"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9XNbQG8AQoiIjc9Vp6a/te.YIoxI.U3wNY6NEgp5GBSyYBY6ckXB2"], ["created_at", "2019-11-21 16:29:15.577910"], ["updated_at", "2019-11-21 16:29:15.577910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.580865"], ["last_sign_in_at", "2019-11-21 16:29:15.580865"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.581741"], ["id", 49]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.585805"], ["updated_at", "2019-11-21 16:29:15.585805"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NfzzQ7KW1RVdAioxL.Gid.9f3K.E2SXWeA/5g7c1eqv0ea7bVzSAS"], ["created_at", "2019-11-21 16:29:15.594624"], ["updated_at", "2019-11-21 16:29:15.594624"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.597465"], ["last_sign_in_at", "2019-11-21 16:29:15.597465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.598126"], ["id", 50]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.603531"], ["updated_at", "2019-11-21 16:29:15.603531"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NNFKwteYNZjtZS4Iwy4lReJJfsftHR8eHrnErWOypQaiKTrotaBva"], ["created_at", "2019-11-21 16:29:15.612109"], ["updated_at", "2019-11-21 16:29:15.612109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.615066"], ["last_sign_in_at", "2019-11-21 16:29:15.615066"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.615814"], ["id", 51]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DM9dMF6jvC1Jluc.cqDFj.7P7ZGDeuYxaDdxnM6pEHgBZJhhDibNq"], ["created_at", "2019-11-21 16:29:15.627863"], ["updated_at", "2019-11-21 16:29:15.627863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.630771"], ["last_sign_in_at", "2019-11-21 16:29:15.630771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.631477"], ["id", 52]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tqKjx4hc9LfzFTOB7s1awuMRHV0js4dbczlsfzszNeUopl9J6mRRK"], ["created_at", "2019-11-21 16:29:15.643885"], ["updated_at", "2019-11-21 16:29:15.643885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.647345"], ["last_sign_in_at", "2019-11-21 16:29:15.647345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.647897"], ["id", 53]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XwwlntZb2E3LoUUf.NT/CuVOkJS3eb.yvGIrZ7MPGmAmqG.0N.uf2"], ["created_at", "2019-11-21 16:29:15.661244"], ["updated_at", "2019-11-21 16:29:15.661244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.664323"], ["updated_at", "2019-11-21 16:29:15.664323"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/42” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.668454"], ["last_sign_in_at", "2019-11-21 16:29:15.668454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.669322"], ["id", 54]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"42"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 42], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:29:15.674055"], ["id", 42]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/42 Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2tseB4sWRUWUjgojUG7MR.agD7GOiiwUegrhU30HpF4nBKycTg5Tu"], ["created_at", "2019-11-21 16:29:15.684010"], ["updated_at", "2019-11-21 16:29:15.684010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.686873"], ["updated_at", "2019-11-21 16:29:15.686873"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/43” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.690303"], ["last_sign_in_at", "2019-11-21 16:29:15.690303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.691063"], ["id", 55]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"43"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 43], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:29:15.695552"], ["id", 43]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/43 Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BhI8DMi6lv72/6eYgf93o.Bp9j1aEKRWR6jyaxkmVK/XxfGBEbkXW"], ["created_at", "2019-11-21 16:29:15.708319"], ["updated_at", "2019-11-21 16:29:15.708319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.711512"], ["updated_at", "2019-11-21 16:29:15.711512"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/44” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.714496"], ["last_sign_in_at", "2019-11-21 16:29:15.714496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.715363"], ["id", 56]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"44"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 44], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q0kpp0DXsVkULEMB3GeiWOUeMdykGQ1E2HR2OoiM7ElRgMR.XWmFK"], ["created_at", "2019-11-21 16:29:15.733857"], ["updated_at", "2019-11-21 16:29:15.733857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.736338"], ["updated_at", "2019-11-21 16:29:15.736338"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/45” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.739264"], ["last_sign_in_at", "2019-11-21 16:29:15.739264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.739807"], ["id", 57]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"45"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 45], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EAXNIy3CLSuKdPdW3hulV.fxmsxqCNQ1Siflzp3pWGNTSfHW/P2Ku"], ["created_at", "2019-11-21 16:29:15.757306"], ["updated_at", "2019-11-21 16:29:15.757306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.760547"], ["last_sign_in_at", "2019-11-21 16:29:15.760547"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.761183"], ["id", 58]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aC4aQcaDO4e07Hdk8hwtaeuUlWWDPnKdBkaIM4GRPMksQ5tIspVja"], ["created_at", "2019-11-21 16:29:15.772266"], ["updated_at", "2019-11-21 16:29:15.772266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.774644"], ["updated_at", "2019-11-21 16:29:15.774644"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/46” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.776599"], ["last_sign_in_at", "2019-11-21 16:29:15.776599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.777067"], ["id", 59]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"46"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 46], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 46]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v2medRCbN1Pb39dVVtix4uOMFIiXZt7qr18DcjwN5XH..rEDycCgq"], ["created_at", "2019-11-21 16:29:15.789910"], ["updated_at", "2019-11-21 16:29:15.789910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.792222"], ["updated_at", "2019-11-21 16:29:15.792222"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/47” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.794256"], ["last_sign_in_at", "2019-11-21 16:29:15.794256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.794987"], ["id", 60]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"47"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 47], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 47]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zLS.c.oQnjgbC71BCYLk5eewCvvs0HeFXnZyrmByYn4cpvBiRnbfC"], ["created_at", "2019-11-21 16:29:15.809029"], ["updated_at", "2019-11-21 16:29:15.809029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.811659"], ["updated_at", "2019-11-21 16:29:15.811659"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/48” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.814353"], ["last_sign_in_at", "2019-11-21 16:29:15.814353"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.815067"], ["id", 61]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"48"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.dO8claBtYQxXf2qiM28VuQhffwd/lDIwkqoyO/oPMAOnzfpPSQzK"], ["created_at", "2019-11-21 16:29:15.826138"], ["updated_at", "2019-11-21 16:29:15.826138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.828609"], ["updated_at", "2019-11-21 16:29:15.828609"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/49” for 127.0.0.1 at 2019-11-21 13:29:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.831233"], ["last_sign_in_at", "2019-11-21 16:29:15.831233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.832175"], ["id", 62]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"49"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$oHVhGvHH06w8r3FczWhWieg2afCEcUMLy2WhHZCTyQ38Tl.BH5dD6"], ["created_at", "2019-11-21 16:59:31.131247"], ["updated_at", "2019-11-21 16:59:31.131247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.134431"], ["updated_at", "2019-11-21 16:59:31.134431"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.193498"], ["last_sign_in_at", "2019-11-21 16:59:31.193498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.194255"], ["id", 63]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"50"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 50], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 63], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 63], ["room_id", 50], ["created_at", "2019-11-21 16:59:31.310394"], ["updated_at", "2019-11-21 16:59:31.310394"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 84ms (ActiveRecord: 2.1ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 50], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (8.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zk9qIpaHRyhpb5QdsKmQBuvNqaOzj/t1fwcXjSmOgVubBMzCKtjJG"], ["created_at", "2019-11-21 16:59:31.345246"], ["updated_at", "2019-11-21 16:59:31.345246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.347566"], ["updated_at", "2019-11-21 16:59:31.347566"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.350099"], ["last_sign_in_at", "2019-11-21 16:59:31.350099"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.350620"], ["id", 64]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"51"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 51], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 64], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 64], ["room_id", 51], ["created_at", "2019-11-21 16:59:31.355717"], ["updated_at", "2019-11-21 16:59:31.355717"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$XgjxO4w7MQRJ7xCkbJu9ee74wKIO6ZZCYVcEQUqw7mLP.kkVlHJ5i"], ["created_at", "2019-11-21 16:59:31.364639"], ["updated_at", "2019-11-21 16:59:31.364639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.367074"], ["updated_at", "2019-11-21 16:59:31.367074"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.369645"], ["last_sign_in_at", "2019-11-21 16:59:31.369645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.370185"], ["id", 65]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"52"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 52], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hbohL2ROfmJ0WG6iWFdPSOwWwOgDxJmr0kua4Ya9kS9G67TC/mWv."], ["created_at", "2019-11-21 16:59:31.380029"], ["updated_at", "2019-11-21 16:59:31.380029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.382338"], ["updated_at", "2019-11-21 16:59:31.382338"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.384638"], ["last_sign_in_at", "2019-11-21 16:59:31.384638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.385190"], ["id", 66]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"53"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Vw.AQe19zNmMmYDXDuU0u.ZYDZGSFtRyT3J.1kLlhxF8df7fIBx32"], ["created_at", "2019-11-21 16:59:31.395575"], ["updated_at", "2019-11-21 16:59:31.395575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.398009"], ["updated_at", "2019-11-21 16:59:31.398009"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 54], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 67], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 67], ["room_id", 54], ["created_at", "2019-11-21 16:59:31.402139"], ["updated_at", "2019-11-21 16:59:31.402139"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/54” for 127.0.0.1 at 2019-11-21 13:59:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.404586"], ["last_sign_in_at", "2019-11-21 16:59:31.404586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.405231"], ["id", 67]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"54"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 54], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '54')[0m
Rendered appointments/show.html.erb within layouts/application (142.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 700ms (Views: 672.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$WGQCVGX4x9uitDx66bRnrOAhQU5bimROsY30wbU4y5zSYlQjUvVE6"], ["created_at", "2019-11-21 16:59:32.115416"], ["updated_at", "2019-11-21 16:59:32.115416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.117626"], ["updated_at", "2019-11-21 16:59:32.117626"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 55], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 68], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 68], ["room_id", 55], ["created_at", "2019-11-21 16:59:32.121651"], ["updated_at", "2019-11-21 16:59:32.121651"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 55], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 68], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 68], ["room_id", 55], ["created_at", "2019-11-21 16:59:32.125561"], ["updated_at", "2019-11-21 16:59:32.125561"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.128219"], ["last_sign_in_at", "2019-11-21 16:59:32.128219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.128791"], ["id", 68]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 68]] Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$e78oDEX52sXcWCF1ixlSVeWCuyreuYUhWBEvJYPj915xcwm00yPs6"], ["created_at", "2019-11-21 16:59:32.172343"], ["updated_at", "2019-11-21 16:59:32.172343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.174452"], ["updated_at", "2019-11-21 16:59:32.174452"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 56], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 69], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 69], ["room_id", 56], ["created_at", "2019-11-21 16:59:32.178694"], ["updated_at", "2019-11-21 16:59:32.178694"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 56], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 69], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 69], ["room_id", 56], ["created_at", "2019-11-21 16:59:32.182344"], ["updated_at", "2019-11-21 16:59:32.182344"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.184368"], ["last_sign_in_at", "2019-11-21 16:59:32.184368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.184912"], ["id", 69]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 69]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ruTyNIyvOVmA0gyCfBJuyuSE7nFpPF1UDax9ivC8f0LwduAGsQfzG"], ["created_at", "2019-11-21 16:59:32.197375"], ["updated_at", "2019-11-21 16:59:32.197375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.199399"], ["updated_at", "2019-11-21 16:59:32.199399"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 57], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 70], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 70], ["room_id", 57], ["created_at", "2019-11-21 16:59:32.202970"], ["updated_at", "2019-11-21 16:59:32.202970"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/26” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.204975"], ["last_sign_in_at", "2019-11-21 16:59:32.204975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.205506"], ["id", 70]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"26"}
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 26], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 26]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GsGvXTbTlletZKBBo3NDQOoFxdUNbVbocY0uz1CorMfm0wNYJxIr2"], ["created_at", "2019-11-21 16:59:32.218709"], ["updated_at", "2019-11-21 16:59:32.218709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.220915"], ["last_sign_in_at", "2019-11-21 16:59:32.220915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.221407"], ["id", 71]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 52ms (Views: 19.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dwQn4hgQIgnRYe94861UwOGt7fmtXEm3n4qPHJP.oWhhR3hin0P5K"], ["created_at", "2019-11-21 16:59:32.283693"], ["updated_at", "2019-11-21 16:59:32.283693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.286286"], ["updated_at", "2019-11-21 16:59:32.286286"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 58], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 72], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 72], ["room_id", 58], ["created_at", "2019-11-21 16:59:32.289869"], ["updated_at", "2019-11-21 16:59:32.289869"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 58], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 72], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 72], ["room_id", 58], ["created_at", "2019-11-21 16:59:32.294657"], ["updated_at", "2019-11-21 16:59:32.294657"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.296905"], ["last_sign_in_at", "2019-11-21 16:59:32.296905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.297387"], ["id", 72]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 58], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 72], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 72], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B//aaXBszspW9wGThNyEsuufRoXzHuHWIJzvnZqAiPyaM9vvzoC/6"], ["created_at", "2019-11-21 16:59:32.311645"], ["updated_at", "2019-11-21 16:59:32.311645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.313874"], ["updated_at", "2019-11-21 16:59:32.313874"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 59], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 73], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 73], ["room_id", 59], ["created_at", "2019-11-21 16:59:32.317743"], ["updated_at", "2019-11-21 16:59:32.317743"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 59], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 73], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 73], ["room_id", 59], ["created_at", "2019-11-21 16:59:32.334376"], ["updated_at", "2019-11-21 16:59:32.334376"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.336742"], ["last_sign_in_at", "2019-11-21 16:59:32.336742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.337255"], ["id", 73]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8cji68HIq29.OigfXtLnVea9STEPkdt1OIW3zNFk/Fp.rJPbCJbR2"], ["created_at", "2019-11-21 16:59:32.350965"], ["updated_at", "2019-11-21 16:59:32.350965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.353458"], ["last_sign_in_at", "2019-11-21 16:59:32.353458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.353988"], ["id", 74]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (27.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 87ms (Views: 66.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xfR57WvAaQVu122JurV9WuKShV.xv0Cakntj8fKCoNMtxb/EQZ4iC"], ["created_at", "2019-11-21 16:59:32.461751"], ["updated_at", "2019-11-21 16:59:32.461751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.464293"], ["last_sign_in_at", "2019-11-21 16:59:32.464293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.464879"], ["id", 75]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pSAp98yzl6RzzjVnrZgGWunl9b/kEBxP255HO9/dtWQW6FeCm8Y8e"], ["created_at", "2019-11-21 16:59:32.475017"], ["updated_at", "2019-11-21 16:59:32.475017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.477922"], ["last_sign_in_at", "2019-11-21 16:59:32.477922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.478552"], ["id", 76]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 29ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FhGhsbF6AMs9rfKIn2ukK.jmYsiqQkmRH.bZU6GaC7HP1NnIsZyjO"], ["created_at", "2019-11-21 16:59:32.516189"], ["updated_at", "2019-11-21 16:59:32.516189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.518650"], ["last_sign_in_at", "2019-11-21 16:59:32.518650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.519193"], ["id", 77]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pJgMpvozSrC/.Ax5LByiUey8hMIpTsXl6fNVT5PrktQ8QotuZa8mW"], ["created_at", "2019-11-21 16:59:32.539565"], ["updated_at", "2019-11-21 16:59:32.539565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.541727"], ["updated_at", "2019-11-21 16:59:32.541727"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/60” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.544144"], ["last_sign_in_at", "2019-11-21 16:59:32.544144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.544927"], ["id", 78]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"60"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 60], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aM0a8BKjrMNM5jMTQyQVDuc5alsWDzd5n10lb/p6986zew2nLgLUy"], ["created_at", "2019-11-21 16:59:32.573143"], ["updated_at", "2019-11-21 16:59:32.573143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.575563"], ["updated_at", "2019-11-21 16:59:32.575563"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/61” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.578097"], ["last_sign_in_at", "2019-11-21 16:59:32.578097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.578682"], ["id", 79]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"61"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 61], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.589160"], ["updated_at", "2019-11-21 16:59:32.589160"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/62” for 127.0.0.1 at 2019-11-21 13:59:32 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"62"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u6HAdwkM7p/R93ASHnoxRuMMUjrxd8U9NimN3CxTH/H88tvDl0c/y"], ["created_at", "2019-11-21 16:59:32.600580"], ["updated_at", "2019-11-21 16:59:32.600580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.602791"], ["updated_at", "2019-11-21 16:59:32.602791"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/63/edit” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.605166"], ["last_sign_in_at", "2019-11-21 16:59:32.605166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.605745"], ["id", 80]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"63"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 63], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 4.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WRgUKvCF2dwz/MaNQsCDCuVlwgpKEgS4AmhY7OWIFwEO0nbs8TXr."], ["created_at", "2019-11-21 16:59:32.636375"], ["updated_at", "2019-11-21 16:59:32.636375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.638953"], ["updated_at", "2019-11-21 16:59:32.638953"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/64/edit” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.641394"], ["last_sign_in_at", "2019-11-21 16:59:32.641394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.642002"], ["id", 81]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"64"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 64], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.654224"], ["updated_at", "2019-11-21 16:59:32.654224"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/65” for 127.0.0.1 at 2019-11-21 13:59:32 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"65"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4jaARUyJauRwD9zleG0Kxun1m7nb9BHwLfZsHvMW9yESZfHMyi6ii"], ["created_at", "2019-11-21 16:59:32.666102"], ["updated_at", "2019-11-21 16:59:32.666102"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.668761"], ["last_sign_in_at", "2019-11-21 16:59:32.668761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.669614"], ["id", 82]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.673249"], ["updated_at", "2019-11-21 16:59:32.673249"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8ITa4cBXjlN0cQU/ZIv7iu2hSiEBF9zhAm84FfTDFmwHylyRIwP6e"], ["created_at", "2019-11-21 16:59:32.682377"], ["updated_at", "2019-11-21 16:59:32.682377"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.685358"], ["last_sign_in_at", "2019-11-21 16:59:32.685358"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.685954"], ["id", 83]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.690046"], ["updated_at", "2019-11-21 16:59:32.690046"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y.T.KjbdTde22nfrLNSSI.CpqieRjD2kT9hqsjIlTma17.1Iia22u"], ["created_at", "2019-11-21 16:59:32.699833"], ["updated_at", "2019-11-21 16:59:32.699833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.703446"], ["last_sign_in_at", "2019-11-21 16:59:32.703446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.703957"], ["id", 84]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aOPHe97rPnD.0bSZ6eOJoezR7LMH0htv2cMQ2EWB7g9bvqfRwPbTu"], ["created_at", "2019-11-21 16:59:32.717634"], ["updated_at", "2019-11-21 16:59:32.717634"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.720967"], ["last_sign_in_at", "2019-11-21 16:59:32.720967"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.721448"], ["id", 85]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Krwn/qBNS1cIgmeoz.WY5Or7IygZ6hesedBUOVdh4VmZN80RIjYYW"], ["created_at", "2019-11-21 16:59:32.735454"], ["updated_at", "2019-11-21 16:59:32.735454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.738625"], ["last_sign_in_at", "2019-11-21 16:59:32.738625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.739415"], ["id", 86]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WwtA5lfsGJ35xSIlEGvS4O3a7Beq0Sdqnk1rCT9uKdkYI4L7o1uki"], ["created_at", "2019-11-21 16:59:32.754364"], ["updated_at", "2019-11-21 16:59:32.754364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.757025"], ["updated_at", "2019-11-21 16:59:32.757025"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/68” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.760164"], ["last_sign_in_at", "2019-11-21 16:59:32.760164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.760853"], ["id", 87]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"68"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 68], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:59:32.765629"], ["id", 68]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/68 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OP7.ACz.nNFalREK6Zb4p.PA233exDWvMTEXzXL6H8DWKLXVArzce"], ["created_at", "2019-11-21 16:59:32.774277"], ["updated_at", "2019-11-21 16:59:32.774277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.776721"], ["updated_at", "2019-11-21 16:59:32.776721"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/69” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.780039"], ["last_sign_in_at", "2019-11-21 16:59:32.780039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.780758"], ["id", 88]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"69"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 69], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:59:32.785363"], ["id", 69]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/69 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GL28AfZiVul5ZqfPvkiPsudFapBMaLi8E6NUx3S.5x5Wn0PaxRtAe"], ["created_at", "2019-11-21 16:59:32.795224"], ["updated_at", "2019-11-21 16:59:32.795224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.797674"], ["updated_at", "2019-11-21 16:59:32.797674"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/70” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.800746"], ["last_sign_in_at", "2019-11-21 16:59:32.800746"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.801251"], ["id", 89]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"70"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 70], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xU8EORKW2njHxWNUK4U89ea0lKrnzac/jnHXesa85Na7W.O5asxny"], ["created_at", "2019-11-21 16:59:32.816713"], ["updated_at", "2019-11-21 16:59:32.816713"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.819056"], ["updated_at", "2019-11-21 16:59:32.819056"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/71” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.821560"], ["last_sign_in_at", "2019-11-21 16:59:32.821560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.822122"], ["id", 90]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"71"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 71], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2cqPvwlGXYQ5J8gphfyrC.bDDxae/TPsB3JQ/vGg92NVRk.sMLqvq"], ["created_at", "2019-11-21 16:59:32.838434"], ["updated_at", "2019-11-21 16:59:32.838434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.841351"], ["last_sign_in_at", "2019-11-21 16:59:32.841351"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.842058"], ["id", 91]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uNSkw2FdHnpeHkp4pFcAt.a4J9hNUkJzQvM6ehQ6bwI.RGinEq14."], ["created_at", "2019-11-21 16:59:32.853339"], ["updated_at", "2019-11-21 16:59:32.853339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.856349"], ["updated_at", "2019-11-21 16:59:32.856349"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/72” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.858597"], ["last_sign_in_at", "2019-11-21 16:59:32.858597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.859130"], ["id", 92]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"72"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 72], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 72]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y7ge/kC6O4K6nimcfpkQVuD.QditNzpaE5eqoXfnhmTERp1GbxaFS"], ["created_at", "2019-11-21 16:59:32.871775"], ["updated_at", "2019-11-21 16:59:32.871775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.874390"], ["updated_at", "2019-11-21 16:59:32.874390"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/73” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.876551"], ["last_sign_in_at", "2019-11-21 16:59:32.876551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.877478"], ["id", 93]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"73"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 73], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 73]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7BklBu.PepA1E.TU8xz1AOpb1gtcHMHtg0RpS//m13K3PkYR3n2Ka"], ["created_at", "2019-11-21 16:59:32.890048"], ["updated_at", "2019-11-21 16:59:32.890048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.892444"], ["updated_at", "2019-11-21 16:59:32.892444"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/74” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.894710"], ["last_sign_in_at", "2019-11-21 16:59:32.894710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.895696"], ["id", 94]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"74"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OqY.baUmwOz0ERF4IyxiTevWwXOvtAE59di6dAB4sVog7LbQdcNYi"], ["created_at", "2019-11-21 16:59:32.905996"], ["updated_at", "2019-11-21 16:59:32.905996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.908830"], ["updated_at", "2019-11-21 16:59:32.908830"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/75” for 127.0.0.1 at 2019-11-21 13:59:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.911537"], ["last_sign_in_at", "2019-11-21 16:59:32.911537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.912314"], ["id", 95]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"75"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$AthOXV1fQDkFWhHhNj9zeOux61dDC9it.TEOGZ8oQeNKH5CHhzEvm"], ["created_at", "2019-11-21 17:29:21.694320"], ["updated_at", "2019-11-21 17:29:21.694320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.697228"], ["updated_at", "2019-11-21 17:29:21.697228"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.721832"], ["last_sign_in_at", "2019-11-21 17:29:21.721832"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.722602"], ["id", 96]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"76"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 76], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 96], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 96], ["room_id", 76], ["created_at", "2019-11-21 17:29:21.766026"], ["updated_at", "2019-11-21 17:29:21.766026"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.0ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 76], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qfOi6O4kEcb3QJ26gBq5NubeGKcrX275p7rkzgGDnnxSBaDD7oDrK"], ["created_at", "2019-11-21 17:29:21.781250"], ["updated_at", "2019-11-21 17:29:21.781250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.783451"], ["updated_at", "2019-11-21 17:29:21.783451"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.785961"], ["last_sign_in_at", "2019-11-21 17:29:21.785961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.786500"], ["id", 97]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"77"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 77], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 97], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 97], ["room_id", 77], ["created_at", "2019-11-21 17:29:21.791949"], ["updated_at", "2019-11-21 17:29:21.791949"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NhWdkfKdMqbop7bCrvcpyu4jKPMHr2ltB6RT7tbFwqvX7fSdtEJs."], ["created_at", "2019-11-21 17:29:21.799932"], ["updated_at", "2019-11-21 17:29:21.799932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.801921"], ["updated_at", "2019-11-21 17:29:21.801921"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.804174"], ["last_sign_in_at", "2019-11-21 17:29:21.804174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.804657"], ["id", 98]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"78"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 78], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$lUYwby.mW4nXOwBua.J6pOmhSMj8s9QtY5JM4Yv6aDdY6Pu2elYp2"], ["created_at", "2019-11-21 17:29:21.813459"], ["updated_at", "2019-11-21 17:29:21.813459"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.815509"], ["updated_at", "2019-11-21 17:29:21.815509"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.817727"], ["last_sign_in_at", "2019-11-21 17:29:21.817727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.818200"], ["id", 99]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"79"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$RH8SqgXWrCi7GFzvHTRWWe3j5MEmXa29cXWSR7KNzQ7VSppLgF5YG"], ["created_at", "2019-11-21 17:29:21.827579"], ["updated_at", "2019-11-21 17:29:21.827579"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.829802"], ["updated_at", "2019-11-21 17:29:21.829802"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 80], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 100], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 100], ["room_id", 80], ["created_at", "2019-11-21 17:29:21.837145"], ["updated_at", "2019-11-21 17:29:21.837145"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/80” for 127.0.0.1 at 2019-11-21 14:29:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.839714"], ["last_sign_in_at", "2019-11-21 17:29:21.839714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.840372"], ["id", 100]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"80"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 80], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '80')[0m
Rendered appointments/show.html.erb within layouts/application (21.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 380ms (Views: 362.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ITyvyh9fXDEn3LMicP.8Fuio58cafWDvPGzbtBx2sb865CzMaGhdW"], ["created_at", "2019-11-21 17:29:22.230249"], ["updated_at", "2019-11-21 17:29:22.230249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.232226"], ["updated_at", "2019-11-21 17:29:22.232226"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 81], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 101], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 101], ["room_id", 81], ["created_at", "2019-11-21 17:29:22.235885"], ["updated_at", "2019-11-21 17:29:22.235885"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 81], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 101], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 101], ["room_id", 81], ["created_at", "2019-11-21 17:29:22.239656"], ["updated_at", "2019-11-21 17:29:22.239656"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.242014"], ["last_sign_in_at", "2019-11-21 17:29:22.242014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.242478"], ["id", 101]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 101]] Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 36ms (Views: 4.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$buUAk0GD6vtz68qeYSjb5.DMurCqupIolLz/2Zw/WIgCr0rgVpJI2"], ["created_at", "2019-11-21 17:29:22.286089"], ["updated_at", "2019-11-21 17:29:22.286089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.288269"], ["updated_at", "2019-11-21 17:29:22.288269"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 82], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 102], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 102], ["room_id", 82], ["created_at", "2019-11-21 17:29:22.292075"], ["updated_at", "2019-11-21 17:29:22.292075"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 82], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 102], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 102], ["room_id", 82], ["created_at", "2019-11-21 17:29:22.295481"], ["updated_at", "2019-11-21 17:29:22.295481"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.297479"], ["last_sign_in_at", "2019-11-21 17:29:22.297479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.298005"], ["id", 102]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 102]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$XrNI6bRu4gU/7N0RM2hmjOq9PnnUQ7A99.Ni.LoEOBaFGsn5ddgUq"], ["created_at", "2019-11-21 17:29:22.310782"], ["updated_at", "2019-11-21 17:29:22.310782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.312816"], ["updated_at", "2019-11-21 17:29:22.312816"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 83], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 103], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 103], ["room_id", 83], ["created_at", "2019-11-21 17:29:22.316482"], ["updated_at", "2019-11-21 17:29:22.316482"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/38” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.318569"], ["last_sign_in_at", "2019-11-21 17:29:22.318569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.319083"], ["id", 103]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"38"}
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 38], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 38]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G1HmP0HYallx8NM49ElnDO758jpWKFHsq3.rFIwEb9aVFQT0/o.uq"], ["created_at", "2019-11-21 17:29:22.333174"], ["updated_at", "2019-11-21 17:29:22.333174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.335521"], ["last_sign_in_at", "2019-11-21 17:29:22.335521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.336094"], ["id", 104]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.9ms) Rendered layouts/_header-admin.html.erb (1.5ms)
Completed 200 OK in 36ms (Views: 19.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sWKwdEsld7wlvOkKocGKMuBOTWisvG.bm3iG1okVDn40VC7y768jm"], ["created_at", "2019-11-21 17:29:22.381107"], ["updated_at", "2019-11-21 17:29:22.381107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.383126"], ["updated_at", "2019-11-21 17:29:22.383126"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 84], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 105], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 105], ["room_id", 84], ["created_at", "2019-11-21 17:29:22.386789"], ["updated_at", "2019-11-21 17:29:22.386789"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 84], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 105], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 105], ["room_id", 84], ["created_at", "2019-11-21 17:29:22.390925"], ["updated_at", "2019-11-21 17:29:22.390925"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.393209"], ["last_sign_in_at", "2019-11-21 17:29:22.393209"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.393697"], ["id", 105]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 84], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 105], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 105], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K9UVTQxB0CIn65di/Z6.9Ovv4bLPKAxF3SIL6UnlhO5kpAHHms1Le"], ["created_at", "2019-11-21 17:29:22.407485"], ["updated_at", "2019-11-21 17:29:22.407485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.409960"], ["updated_at", "2019-11-21 17:29:22.409960"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 85], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 106], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 106], ["room_id", 85], ["created_at", "2019-11-21 17:29:22.413586"], ["updated_at", "2019-11-21 17:29:22.413586"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 85], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 106], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 106], ["room_id", 85], ["created_at", "2019-11-21 17:29:22.417642"], ["updated_at", "2019-11-21 17:29:22.417642"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.419868"], ["last_sign_in_at", "2019-11-21 17:29:22.419868"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.420418"], ["id", 106]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 85], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 106], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 106], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OnbDJWVql7upg5.UmS86f.D2SeReCG2rYnLUzmcYv5ERCZQwVltNO"], ["created_at", "2019-11-21 17:29:22.434694"], ["updated_at", "2019-11-21 17:29:22.434694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.436948"], ["updated_at", "2019-11-21 17:29:22.436948"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 86], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 107], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 107], ["room_id", 86], ["created_at", "2019-11-21 17:29:22.441022"], ["updated_at", "2019-11-21 17:29:22.441022"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 86], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 107], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 107], ["room_id", 86], ["created_at", "2019-11-21 17:29:22.444757"], ["updated_at", "2019-11-21 17:29:22.444757"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.447003"], ["last_sign_in_at", "2019-11-21 17:29:22.447003"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.447529"], ["id", 107]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i.VuvQnERy2tOFah/8c/bumWBb7lbL9jueOJ3ls8c.AkEmAokPsnO"], ["created_at", "2019-11-21 17:29:22.458651"], ["updated_at", "2019-11-21 17:29:22.458651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.460701"], ["updated_at", "2019-11-21 17:29:22.460701"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 87], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 108], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 108], ["room_id", 87], ["created_at", "2019-11-21 17:29:22.464268"], ["updated_at", "2019-11-21 17:29:22.464268"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 87], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 108], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 108], ["room_id", 87], ["created_at", "2019-11-21 17:29:22.467841"], ["updated_at", "2019-11-21 17:29:22.467841"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.469850"], ["last_sign_in_at", "2019-11-21 17:29:22.469850"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.470281"], ["id", 108]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lJsDMy3BXfdO9dH2OYYDZOE1ScyAA5PKaLgsNp2eSCtyxvMnYthpm"], ["created_at", "2019-11-21 17:29:22.484878"], ["updated_at", "2019-11-21 17:29:22.484878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.487189"], ["last_sign_in_at", "2019-11-21 17:29:22.487189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.487708"], ["id", 109]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 47.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PSi4Ke1HPubOAeQzoipLGe.lfXdN9inzYIzVXHC1Wbqsrxpnqoipa"], ["created_at", "2019-11-21 17:29:22.562697"], ["updated_at", "2019-11-21 17:29:22.562697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.564893"], ["last_sign_in_at", "2019-11-21 17:29:22.564893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.565332"], ["id", 110]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YAuIrX9VgNYJoTbrWmoGU.tu9eepEEhCJLiGnN0LdLBn8kxuAVGjC"], ["created_at", "2019-11-21 17:29:22.574714"], ["updated_at", "2019-11-21 17:29:22.574714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.577249"], ["last_sign_in_at", "2019-11-21 17:29:22.577249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.577857"], ["id", 111]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cYudtF8XFcbhRBLm0o6s9eFcaQeX/hNaNRHVnGu4puh.kT751WivO"], ["created_at", "2019-11-21 17:29:22.605310"], ["updated_at", "2019-11-21 17:29:22.605310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.607667"], ["last_sign_in_at", "2019-11-21 17:29:22.607667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.608212"], ["id", 112]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.waOmbCxjHQWhAQ3XWQfpeenMmMYrU0Ej11YmEL39jdcQftmSDceW"], ["created_at", "2019-11-21 17:29:22.627801"], ["updated_at", "2019-11-21 17:29:22.627801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.630526"], ["updated_at", "2019-11-21 17:29:22.630526"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/88” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.632616"], ["last_sign_in_at", "2019-11-21 17:29:22.632616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.633188"], ["id", 113]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"88"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 88], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W8MX0Gr9VoIvrsCo3OPBBeCo42/C1rBFc1ZY5sct2XIFGqRK89sFy"], ["created_at", "2019-11-21 17:29:22.660251"], ["updated_at", "2019-11-21 17:29:22.660251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.662516"], ["updated_at", "2019-11-21 17:29:22.662516"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/89” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.664741"], ["last_sign_in_at", "2019-11-21 17:29:22.664741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.665371"], ["id", 114]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"89"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 89], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.675723"], ["updated_at", "2019-11-21 17:29:22.675723"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/90” for 127.0.0.1 at 2019-11-21 14:29:22 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"90"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4iQ1oBRtie7UIS/09BP2vOZ1lM6ZdMYVETaU4oR/raBBDRkULUESq"], ["created_at", "2019-11-21 17:29:22.686321"], ["updated_at", "2019-11-21 17:29:22.686321"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.688700"], ["updated_at", "2019-11-21 17:29:22.688700"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/91/edit” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.691153"], ["last_sign_in_at", "2019-11-21 17:29:22.691153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.691687"], ["id", 115]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"91"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 91], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Pe2e/I8Iegtd7p2SwbKTIOxeuCPlai.LWXS1lt.rKkl7E8OEEY7VC"], ["created_at", "2019-11-21 17:29:22.719748"], ["updated_at", "2019-11-21 17:29:22.719748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.722081"], ["updated_at", "2019-11-21 17:29:22.722081"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/92/edit” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.724636"], ["last_sign_in_at", "2019-11-21 17:29:22.724636"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.725231"], ["id", 116]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"92"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 92], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.736458"], ["updated_at", "2019-11-21 17:29:22.736458"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/93” for 127.0.0.1 at 2019-11-21 14:29:22 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"93"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G4CFGizq6XXBH/LvoUzBBe1tS7ptBWqzfgni38XFja0w14mJ/O7di"], ["created_at", "2019-11-21 17:29:22.748266"], ["updated_at", "2019-11-21 17:29:22.748266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.750859"], ["last_sign_in_at", "2019-11-21 17:29:22.750859"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.751428"], ["id", 117]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.754868"], ["updated_at", "2019-11-21 17:29:22.754868"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jPbZFThYmcTRFOgraneA8Otb/TyPU9YPGI5r9vhL0cVH18CgdKs7G"], ["created_at", "2019-11-21 17:29:22.764538"], ["updated_at", "2019-11-21 17:29:22.764538"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.767369"], ["last_sign_in_at", "2019-11-21 17:29:22.767369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.767943"], ["id", 118]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.772539"], ["updated_at", "2019-11-21 17:29:22.772539"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eWivxX.NykatGsFqgTS9u.frDW.1SghasgaCrUhkWAR/3h28TQcO2"], ["created_at", "2019-11-21 17:29:22.794307"], ["updated_at", "2019-11-21 17:29:22.794307"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.797099"], ["last_sign_in_at", "2019-11-21 17:29:22.797099"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.797629"], ["id", 119]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5X9Dbmb5Vrinw4U2h8OK9u2Df/ys4d82VmDG./43uPfxykDh1TmXW"], ["created_at", "2019-11-21 17:29:22.809208"], ["updated_at", "2019-11-21 17:29:22.809208"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.812346"], ["last_sign_in_at", "2019-11-21 17:29:22.812346"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.812971"], ["id", 120]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1sBv7ZyianlAc70uSlVJ6.RcV/WpcXpE2pn4vWq8MZVQTplL0UD6K"], ["created_at", "2019-11-21 17:29:22.824821"], ["updated_at", "2019-11-21 17:29:22.824821"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.827530"], ["last_sign_in_at", "2019-11-21 17:29:22.827530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.828012"], ["id", 121]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MwysD.PqSd.Bx5KurOOKbubTkIJSEmWRspl3KYF2T8.fmG2z4xrXm"], ["created_at", "2019-11-21 17:29:22.838868"], ["updated_at", "2019-11-21 17:29:22.838868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.841688"], ["updated_at", "2019-11-21 17:29:22.841688"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/96” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.844123"], ["last_sign_in_at", "2019-11-21 17:29:22.844123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.844658"], ["id", 122]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"96"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 96], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:29:22.848460"], ["id", 96]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/96 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fpbLffcUOlHB7R.Rw.o.aOmqKyTAe08c0ehuozoQ0F/aJmdiPVPO2"], ["created_at", "2019-11-21 17:29:22.857089"], ["updated_at", "2019-11-21 17:29:22.857089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.859420"], ["updated_at", "2019-11-21 17:29:22.859420"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/97” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.861907"], ["last_sign_in_at", "2019-11-21 17:29:22.861907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.862422"], ["id", 123]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"97"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 97], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:29:22.866221"], ["id", 97]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/97 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vlALwi25Jo3/UsMUwqfI9.X6za0N8TGWWAamT1x6Jqek302gDzkSe"], ["created_at", "2019-11-21 17:29:22.875723"], ["updated_at", "2019-11-21 17:29:22.875723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.878017"], ["updated_at", "2019-11-21 17:29:22.878017"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/98” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.880531"], ["last_sign_in_at", "2019-11-21 17:29:22.880531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.881072"], ["id", 124]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"98"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 98], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xBuVojLt7woH/L4WEez/JO3YikZU0lqsRxkE7wnA.q6ak28q3KtBC"], ["created_at", "2019-11-21 17:29:22.895606"], ["updated_at", "2019-11-21 17:29:22.895606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.898379"], ["updated_at", "2019-11-21 17:29:22.898379"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/99” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.900921"], ["last_sign_in_at", "2019-11-21 17:29:22.900921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.901479"], ["id", 125]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"99"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 99], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D7UJj40b4nVGv4QRWSbblOc2PPh1HWMQbUglgd8ZbFCCOeExQHPNy"], ["created_at", "2019-11-21 17:29:22.916774"], ["updated_at", "2019-11-21 17:29:22.916774"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.919400"], ["last_sign_in_at", "2019-11-21 17:29:22.919400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.919887"], ["id", 126]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LIORdaRl4ZGK8KoXFkgO1OUGFrWaQ/vQPx5I.yNSKr05Eo4pZSUs2"], ["created_at", "2019-11-21 17:29:22.930337"], ["updated_at", "2019-11-21 17:29:22.930337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.933213"], ["updated_at", "2019-11-21 17:29:22.933213"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/100” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.935157"], ["last_sign_in_at", "2019-11-21 17:29:22.935157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.935645"], ["id", 127]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"100"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 100], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 100]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yz55u0gUUd9wNNTz6odfZOXWTFgvIAYfZVtV9NzZ3lnO4.YlYVg9y"], ["created_at", "2019-11-21 17:29:22.946898"], ["updated_at", "2019-11-21 17:29:22.946898"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.949132"], ["updated_at", "2019-11-21 17:29:22.949132"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/101” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.951071"], ["last_sign_in_at", "2019-11-21 17:29:22.951071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.951654"], ["id", 128]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"101"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 101], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 101]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vzIknoqvVoH7/VXL.cQib.Ory7IG/4qFg7hfnyumqNhzjsNqxh32u"], ["created_at", "2019-11-21 17:29:22.963715"], ["updated_at", "2019-11-21 17:29:22.963715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.966008"], ["updated_at", "2019-11-21 17:29:22.966008"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/102” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.967916"], ["last_sign_in_at", "2019-11-21 17:29:22.967916"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.968417"], ["id", 129]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"102"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vABUl7fU8l5nC2DGx1uPLupfgMoltPyGEcXl.Gs1hqNwkmkaCvwK."], ["created_at", "2019-11-21 17:29:22.978172"], ["updated_at", "2019-11-21 17:29:22.978172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.980573"], ["updated_at", "2019-11-21 17:29:22.980573"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/103” for 127.0.0.1 at 2019-11-21 14:29:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.982466"], ["last_sign_in_at", "2019-11-21 17:29:22.982466"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.982940"], ["id", 130]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"103"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (27.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (24.1ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$997UUBDlPLdnHJhm.GKwlO6a3aJsBnjrXXh5XHVY.w5nQr3vyEUrq"], ["created_at", "2019-11-21 17:51:25.351003"], ["updated_at", "2019-11-21 17:51:25.351003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.387874"], ["updated_at", "2019-11-21 17:51:25.387874"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (13.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.492519"], ["last_sign_in_at", "2019-11-21 17:51:25.492519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.493191"], ["id", 131]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"104"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 104], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 131], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 131], ["room_id", 104], ["created_at", "2019-11-21 17:51:25.602277"], ["updated_at", "2019-11-21 17:51:25.602277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 78ms (ActiveRecord: 2.2ms)
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 104], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fOtLHim/zZI3JXzjdyhnSOAmHfN.WRi97X8MjogfEtVTThcpke3OC"], ["created_at", "2019-11-21 17:51:25.646385"], ["updated_at", "2019-11-21 17:51:25.646385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.648688"], ["updated_at", "2019-11-21 17:51:25.648688"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.651065"], ["last_sign_in_at", "2019-11-21 17:51:25.651065"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.651555"], ["id", 132]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"105"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 105], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 132], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 132], ["room_id", 105], ["created_at", "2019-11-21 17:51:25.656682"], ["updated_at", "2019-11-21 17:51:25.656682"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$T4XtkGnNVbVgdDgqMERdSegNQDsFB90Vn5i2Fz2vzWOFeWuftloa6"], ["created_at", "2019-11-21 17:51:25.665287"], ["updated_at", "2019-11-21 17:51:25.665287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.667584"], ["updated_at", "2019-11-21 17:51:25.667584"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.670130"], ["last_sign_in_at", "2019-11-21 17:51:25.670130"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.670649"], ["id", 133]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"106"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 106], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VXBXbxd2iugSfi0U6Dj/buEeLrEjZze4es2nHU/TjFjnX8oM6cHze"], ["created_at", "2019-11-21 17:51:25.679600"], ["updated_at", "2019-11-21 17:51:25.679600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.681895"], ["updated_at", "2019-11-21 17:51:25.681895"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.684156"], ["last_sign_in_at", "2019-11-21 17:51:25.684156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.684666"], ["id", 134]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"107"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$pTt/riPIq4oI9pM//pa5u.fuFxqL0A7/EDuq3xfqa9dodcqElDH/e"], ["created_at", "2019-11-21 17:51:25.694303"], ["updated_at", "2019-11-21 17:51:25.694303"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.696498"], ["updated_at", "2019-11-21 17:51:25.696498"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 108], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 135], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 135], ["room_id", 108], ["created_at", "2019-11-21 17:51:25.700230"], ["updated_at", "2019-11-21 17:51:25.700230"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/108” for 127.0.0.1 at 2019-11-21 14:51:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.702764"], ["last_sign_in_at", "2019-11-21 17:51:25.702764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.703311"], ["id", 135]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"108"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 108], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '108')[0m
Rendered appointments/show.html.erb within layouts/application (117.3ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 756ms (Views: 709.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ipgxvJHxnrWLZoRaB.6iYOxE4XtASkj/CH7kWnZDTHlmts9N2gqR2"], ["created_at", "2019-11-21 17:51:26.468698"], ["updated_at", "2019-11-21 17:51:26.468698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.470925"], ["updated_at", "2019-11-21 17:51:26.470925"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 109], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 136], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 136], ["room_id", 109], ["created_at", "2019-11-21 17:51:26.474814"], ["updated_at", "2019-11-21 17:51:26.474814"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 109], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 136], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 136], ["room_id", 109], ["created_at", "2019-11-21 17:51:26.478888"], ["updated_at", "2019-11-21 17:51:26.478888"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.481190"], ["last_sign_in_at", "2019-11-21 17:51:26.481190"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.481714"], ["id", 136]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 136]] Rendered appointments/my_appointments.html.erb within layouts/application (27.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 96ms (Views: 28.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HCi6ri9SooJpGraQ12sg9uBCG./m2myrPVS3JXAmoEooulaXrmgo."], ["created_at", "2019-11-21 17:51:26.585620"], ["updated_at", "2019-11-21 17:51:26.585620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.587782"], ["updated_at", "2019-11-21 17:51:26.587782"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 110], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 137], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 137], ["room_id", 110], ["created_at", "2019-11-21 17:51:26.591484"], ["updated_at", "2019-11-21 17:51:26.591484"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 110], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 137], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 137], ["room_id", 110], ["created_at", "2019-11-21 17:51:26.595222"], ["updated_at", "2019-11-21 17:51:26.595222"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.597473"], ["last_sign_in_at", "2019-11-21 17:51:26.597473"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.597924"], ["id", 137]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 137]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jQ0a65RBR/UHMxu/L4R3ROu.hGaecaHLbt2BOn6jpxOw25P1a.RQO"], ["created_at", "2019-11-21 17:51:26.610300"], ["updated_at", "2019-11-21 17:51:26.610300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.612510"], ["updated_at", "2019-11-21 17:51:26.612510"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 111], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 138], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 138], ["room_id", 111], ["created_at", "2019-11-21 17:51:26.616253"], ["updated_at", "2019-11-21 17:51:26.616253"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/54” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.618401"], ["last_sign_in_at", "2019-11-21 17:51:26.618401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.618908"], ["id", 138]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"54"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 54], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 54]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gL1dsmVuCClxDJqBiYBznuVLtqHYN87E.SQuCAMFxq9OdWo/Jvg.W"], ["created_at", "2019-11-21 17:51:26.632068"], ["updated_at", "2019-11-21 17:51:26.632068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.634410"], ["last_sign_in_at", "2019-11-21 17:51:26.634410"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.634925"], ["id", 139]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 19.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O6/qr3YfKQpcCKLRt2P4Q.zxwrGLGMTWJMKiT76ZXJWMDerob2hqy"], ["created_at", "2019-11-21 17:51:26.678997"], ["updated_at", "2019-11-21 17:51:26.678997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.681497"], ["updated_at", "2019-11-21 17:51:26.681497"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 112], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 140], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 140], ["room_id", 112], ["created_at", "2019-11-21 17:51:26.685136"], ["updated_at", "2019-11-21 17:51:26.685136"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 112], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 140], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 140], ["room_id", 112], ["created_at", "2019-11-21 17:51:26.688858"], ["updated_at", "2019-11-21 17:51:26.688858"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.691318"], ["last_sign_in_at", "2019-11-21 17:51:26.691318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.691902"], ["id", 140]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 112], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 140], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 140], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cjVswfizXsyEoNvSdEYX3.RMmPcwHckZ/1JGklFiCjyMA5prXQ.XW"], ["created_at", "2019-11-21 17:51:26.704782"], ["updated_at", "2019-11-21 17:51:26.704782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.707068"], ["updated_at", "2019-11-21 17:51:26.707068"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 113], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 141], ["room_id", 113], ["created_at", "2019-11-21 17:51:26.711114"], ["updated_at", "2019-11-21 17:51:26.711114"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 113], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 141], ["room_id", 113], ["created_at", "2019-11-21 17:51:26.727124"], ["updated_at", "2019-11-21 17:51:26.727124"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.729666"], ["last_sign_in_at", "2019-11-21 17:51:26.729666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.730191"], ["id", 141]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 113], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/J882qkvg1rrXSYoIAtFzO032P7bgHOh9j0bpzXZ4Zi3emO1.sDGK"], ["created_at", "2019-11-21 17:51:26.744328"], ["updated_at", "2019-11-21 17:51:26.744328"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.746505"], ["updated_at", "2019-11-21 17:51:26.746505"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 114], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 142], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 142], ["room_id", 114], ["created_at", "2019-11-21 17:51:26.750145"], ["updated_at", "2019-11-21 17:51:26.750145"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 114], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 142], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 142], ["room_id", 114], ["created_at", "2019-11-21 17:51:26.754121"], ["updated_at", "2019-11-21 17:51:26.754121"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.756482"], ["last_sign_in_at", "2019-11-21 17:51:26.756482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.757045"], ["id", 142]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h0h.f9JeiflepWtRg2pgg.5RfqdoLfK4B0NzG9wO5QPvRR/ojtrJC"], ["created_at", "2019-11-21 17:51:26.767901"], ["updated_at", "2019-11-21 17:51:26.767901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.770169"], ["updated_at", "2019-11-21 17:51:26.770169"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 115], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 143], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 143], ["room_id", 115], ["created_at", "2019-11-21 17:51:26.773990"], ["updated_at", "2019-11-21 17:51:26.773990"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 115], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 143], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 143], ["room_id", 115], ["created_at", "2019-11-21 17:51:26.777955"], ["updated_at", "2019-11-21 17:51:26.777955"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.780284"], ["last_sign_in_at", "2019-11-21 17:51:26.780284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.780800"], ["id", 143]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wkRMzIc8nf1gfexMHE7QAe/OHcT8JmuZWkCxbIZPbIVTz1ghfNO5q"], ["created_at", "2019-11-21 17:51:26.793477"], ["updated_at", "2019-11-21 17:51:26.793477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.795742"], ["last_sign_in_at", "2019-11-21 17:51:26.795742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.796307"], ["id", 144]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (27.9ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 86ms (Views: 66.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1hZiJhS0nJfEsleMUQj7pOFFYNZo1X9hiL3y/.cT.BGCs4eadFaky"], ["created_at", "2019-11-21 17:51:26.902170"], ["updated_at", "2019-11-21 17:51:26.902170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.904552"], ["last_sign_in_at", "2019-11-21 17:51:26.904552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.905083"], ["id", 145]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/NmjrM4QWkj.mlhd4btkqOr7Wtc14YGMplyHAC0GGMWeaZxjmHaXq"], ["created_at", "2019-11-21 17:51:26.914710"], ["updated_at", "2019-11-21 17:51:26.914710"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.916954"], ["last_sign_in_at", "2019-11-21 17:51:26.916954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.917521"], ["id", 146]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 32ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fiGXfetcVg.4UH442Cn2..S5ur6O8uRRkXM3XhL5LvFE6uX3cYfTW"], ["created_at", "2019-11-21 17:51:26.958011"], ["updated_at", "2019-11-21 17:51:26.958011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.960324"], ["last_sign_in_at", "2019-11-21 17:51:26.960324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.960822"], ["id", 147]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:51:26 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RQ.C93Z1g545XZPjedS9V.1OL/RRCP3aXXE40cm87IpQTDOOB1Vjy"], ["created_at", "2019-11-21 17:51:26.979183"], ["updated_at", "2019-11-21 17:51:26.979183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.981599"], ["updated_at", "2019-11-21 17:51:26.981599"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/116” for 127.0.0.1 at 2019-11-21 14:51:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.983891"], ["last_sign_in_at", "2019-11-21 17:51:26.983891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.984442"], ["id", 148]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"116"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 116], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 18ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CQBGtIN1wUgd74HPr82UyuVKRVpS5P.Fl7GWBmUBqm8x5gqZ5BpnS"], ["created_at", "2019-11-21 17:51:27.011115"], ["updated_at", "2019-11-21 17:51:27.011115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.013518"], ["updated_at", "2019-11-21 17:51:27.013518"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/117” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.015637"], ["last_sign_in_at", "2019-11-21 17:51:27.015637"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.016209"], ["id", 149]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"117"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 117], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.025944"], ["updated_at", "2019-11-21 17:51:27.025944"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/118” for 127.0.0.1 at 2019-11-21 14:51:27 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"118"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hyeUyz3iGRufaQt3.Tz.4OyG31uJGrjNFOcmJrRkEYrPrwj7cBdLu"], ["created_at", "2019-11-21 17:51:27.035884"], ["updated_at", "2019-11-21 17:51:27.035884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.038132"], ["updated_at", "2019-11-21 17:51:27.038132"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/119/edit” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.040368"], ["last_sign_in_at", "2019-11-21 17:51:27.040368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.040907"], ["id", 150]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"119"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 119], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 21ms (Views: 4.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Joz5gph2G9PLGV9ptmBx9u7MAFqrt6LIMrz2TVaabbZKb37x7cwte"], ["created_at", "2019-11-21 17:51:27.070178"], ["updated_at", "2019-11-21 17:51:27.070178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.072764"], ["updated_at", "2019-11-21 17:51:27.072764"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/120/edit” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.075477"], ["last_sign_in_at", "2019-11-21 17:51:27.075477"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.076008"], ["id", 151]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"120"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 120], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.088567"], ["updated_at", "2019-11-21 17:51:27.088567"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/121” for 127.0.0.1 at 2019-11-21 14:51:27 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"121"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U/Z6E9h7QE6ms5VkA2Kp/umAiqVJRNbyLvQaJlI/5lBvFnpr13juK"], ["created_at", "2019-11-21 17:51:27.100266"], ["updated_at", "2019-11-21 17:51:27.100266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.105676"], ["last_sign_in_at", "2019-11-21 17:51:27.105676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.106468"], ["id", 152]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.110552"], ["updated_at", "2019-11-21 17:51:27.110552"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aedMB0mbRPu5pGIpR0Disuahl3dkc8sCmAO8NjqahBINFUL3AUJuW"], ["created_at", "2019-11-21 17:51:27.119974"], ["updated_at", "2019-11-21 17:51:27.119974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.122959"], ["last_sign_in_at", "2019-11-21 17:51:27.122959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.123495"], ["id", 153]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.127159"], ["updated_at", "2019-11-21 17:51:27.127159"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v5Tg62Rc/0K4CXhAaXEOI.IxSqI4.wtONZKyP.VUFWi0xnM3yNTOK"], ["created_at", "2019-11-21 17:51:27.135639"], ["updated_at", "2019-11-21 17:51:27.135639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.138791"], ["last_sign_in_at", "2019-11-21 17:51:27.138791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.139279"], ["id", 154]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (12.5ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 12.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iSJhk4/CQzfvgTVs8Fsr8O/v.hHsLM9fluCTB9lwQnp1aruADRL.m"], ["created_at", "2019-11-21 17:51:27.163706"], ["updated_at", "2019-11-21 17:51:27.163706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.166716"], ["last_sign_in_at", "2019-11-21 17:51:27.166716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.167218"], ["id", 155]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gWKL/roMIsMoQF1y3GuUCuEHk1zxyLsxaPnaGyLXYW0FQdlCu3ylO"], ["created_at", "2019-11-21 17:51:27.178873"], ["updated_at", "2019-11-21 17:51:27.178873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.181821"], ["last_sign_in_at", "2019-11-21 17:51:27.181821"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.182323"], ["id", 156]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UD7Va0jGldu0xqOH9OxWgesQE1/MB.rsu3SSRPky6zQe46zGcMUyO"], ["created_at", "2019-11-21 17:51:27.192497"], ["updated_at", "2019-11-21 17:51:27.192497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.195076"], ["updated_at", "2019-11-21 17:51:27.195076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/124” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.197679"], ["last_sign_in_at", "2019-11-21 17:51:27.197679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.198180"], ["id", 157]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"124"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 124], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:51:27.202164"], ["id", 124]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/124 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FoOHESsHjuaESKdrs9LHde4Hs8KEZ.eh.Q7Sym0IsAGqAjvnoW7uS"], ["created_at", "2019-11-21 17:51:27.210663"], ["updated_at", "2019-11-21 17:51:27.210663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.213013"], ["updated_at", "2019-11-21 17:51:27.213013"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/125” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.215827"], ["last_sign_in_at", "2019-11-21 17:51:27.215827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.216376"], ["id", 158]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"125"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 125], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:51:27.220497"], ["id", 125]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/125 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/ThuN/XiKHVg6wJfABYGeet.3Pb.GRreO6M3g/jfozQnuuJWm3aGu"], ["created_at", "2019-11-21 17:51:27.229254"], ["updated_at", "2019-11-21 17:51:27.229254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.231740"], ["updated_at", "2019-11-21 17:51:27.231740"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/126” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.234567"], ["last_sign_in_at", "2019-11-21 17:51:27.234567"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.235063"], ["id", 159]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"126"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 126], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qzK2gAgQk8kAdDwScfbV4ea1pFw8MYg4dD3yz9hFvfyEZaMTosVLa"], ["created_at", "2019-11-21 17:51:27.250984"], ["updated_at", "2019-11-21 17:51:27.250984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.253279"], ["updated_at", "2019-11-21 17:51:27.253279"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/127” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.255570"], ["last_sign_in_at", "2019-11-21 17:51:27.255570"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.256033"], ["id", 160]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"127"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 127], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vF5h/OROjuaXbjmVuwezA.AffFWpqSHy3tCiB09w6lGrhkeg24CQy"], ["created_at", "2019-11-21 17:51:27.271941"], ["updated_at", "2019-11-21 17:51:27.271941"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.274863"], ["last_sign_in_at", "2019-11-21 17:51:27.274863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.275453"], ["id", 161]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rqPHCKfeJEWi3tjoqJEuXOHymtWGcYYFbzgf0GVyQDcdH3/T8WJbG"], ["created_at", "2019-11-21 17:51:27.285932"], ["updated_at", "2019-11-21 17:51:27.285932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.288312"], ["updated_at", "2019-11-21 17:51:27.288312"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/128” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.290308"], ["last_sign_in_at", "2019-11-21 17:51:27.290308"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.291063"], ["id", 162]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"128"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 128], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 128]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Unu48CkpOACAYub08HWY9urBIAg1NmBqWBSZUi3WWgn8v2cbrX5v2"], ["created_at", "2019-11-21 17:51:27.311958"], ["updated_at", "2019-11-21 17:51:27.311958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.314438"], ["updated_at", "2019-11-21 17:51:27.314438"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/129” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.316404"], ["last_sign_in_at", "2019-11-21 17:51:27.316404"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.316934"], ["id", 163]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"129"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 129], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 129]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2liPTNiazKk6aN/TSBJnvepy0CltWtVtwLogaU4As7qG6kw4TS6XS"], ["created_at", "2019-11-21 17:51:27.327934"], ["updated_at", "2019-11-21 17:51:27.327934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.330039"], ["updated_at", "2019-11-21 17:51:27.330039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/130” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.331813"], ["last_sign_in_at", "2019-11-21 17:51:27.331813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.332265"], ["id", 164]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"130"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dRN/qctTgPFY.TzuRRURhubc.sRAUyy8yEIl1qWHmF6SB4FOJTvBi"], ["created_at", "2019-11-21 17:51:27.341054"], ["updated_at", "2019-11-21 17:51:27.341054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.343207"], ["updated_at", "2019-11-21 17:51:27.343207"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/131” for 127.0.0.1 at 2019-11-21 14:51:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.345065"], ["last_sign_in_at", "2019-11-21 17:51:27.345065"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.345538"], ["id", 165]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"131"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (23.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (4.2ms)
Completed 200 OK in 495ms (Views: 477.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (87.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (71.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$o0WhhvIBjwiADe.fTvQpZOOI4dbsp0iuHiHEeFvlmElSRB28Gucze"], ["created_at", "2019-11-21 23:54:30.252457"], ["updated_at", "2019-11-21 23:54:30.252457"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (47.5ms) Rendered users/sessions/new.html.erb within layouts/application (65.2ms)
Completed 200 OK in 261ms (Views: 257.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:30.660954"], ["last_sign_in_at", "2019-11-21 23:54:30.660954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:30.661671"], ["id", 166]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 223ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 166], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 52ms (Views: 34.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (9.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$mWV3B.NAkxao1eFd.akzf.Ik32Dazg0Hg8M0dXiRL7vkUG/ZELPy."], ["created_at", "2019-11-21 23:54:31.011693"], ["updated_at", "2019-11-21 23:54:31.011693"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$gRVf2m10LftQWE5qy/4.euWEmE8cYe5.NduhO2R0TlsFUjVaeF9/2"], ["created_at", "2019-11-21 23:54:31.051875"], ["updated_at", "2019-11-21 23:54:31.051875"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:31.065634"], ["last_sign_in_at", "2019-11-21 23:54:31.065634"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.066293"], ["id", 168]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 168], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.3ms)
Completed 200 OK in 40ms (Views: 39.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (106.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:31.136991"], ["updated_at", "2019-11-21 23:54:31.136991"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 132], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 168], ["LIMIT", 1]]
[1m[35mSQL (72.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 168], ["room_id", 132], ["created_at", "2019-11-21 23:54:31.304234"], ["updated_at", "2019-11-21 23:54:31.304234"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 168], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 168]] Rendered appointments/my_appointments.html.erb within layouts/application (3.4ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 186ms (Views: 42.8ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/63” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"63"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 63], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 63]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 168], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$NvdM4KkYt4eqgmr5kLCPo.KfM1WXEpeE4QdWwbNf9t.7NAU3UU9ba"], ["created_at", "2019-11-21 23:54:31.605069"], ["updated_at", "2019-11-21 23:54:31.605069"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:31.620687"], ["last_sign_in_at", "2019-11-21 23:54:31.620687"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.621542"], ["id", 169]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 169], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-21 23:54:31.633950"], ["updated_at", "2019-11-21 23:54:31.633950"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 133], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 169], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 169], ["room_id", 133], ["created_at", "2019-11-21 23:54:31.641175"], ["updated_at", "2019-11-21 23:54:31.641175"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 169], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 169]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/64” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"64"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 64], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 64]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 169], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$H5p7l644f7BCwT9le/nQEeDxKsrSXSYvtkorrpBXkjgsrOuhduIem"], ["created_at", "2019-11-21 23:54:31.680365"], ["updated_at", "2019-11-21 23:54:31.680365"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.3ms) Rendered users/sessions/new.html.erb within layouts/application (2.9ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:31.699216"], ["last_sign_in_at", "2019-11-21 23:54:31.699216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.699787"], ["id", 170]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 170], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:31.730216"], ["updated_at", "2019-11-21 23:54:31.730216"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 134], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 170], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 170], ["room_id", 134], ["created_at", "2019-11-21 23:54:31.735755"], ["updated_at", "2019-11-21 23:54:31.735755"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 170], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 170]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$0zUrOvfnyLM05q4dT4Xox.T7a5UgsdkVNI8hetYUpJc1KG.NulxiW"], ["created_at", "2019-11-21 23:54:31.756184"], ["updated_at", "2019-11-21 23:54:31.756184"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:31.769597"], ["last_sign_in_at", "2019-11-21 23:54:31.769597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.770161"], ["id", 171]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 171], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-21 23:54:31.779771"], ["updated_at", "2019-11-21 23:54:31.779771"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 135], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 171], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 171], ["room_id", 135], ["created_at", "2019-11-21 23:54:31.785277"], ["updated_at", "2019-11-21 23:54:31.785277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 171], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 171]] Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$c2/y2CJzJ/g27ugzTx5qcOkJoSaPkIwDfDKI6KLPnyVJUvTheTX2m"], ["created_at", "2019-11-21 23:54:31.809793"], ["updated_at", "2019-11-21 23:54:31.809793"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:31.822782"], ["last_sign_in_at", "2019-11-21 23:54:31.822782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.823742"], ["id", 172]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 172], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:31.837419"], ["updated_at", "2019-11-21 23:54:31.837419"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:31.840103"], ["updated_at", "2019-11-21 23:54:31.840103"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 172], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 86ms (Views: 38.6ms | ActiveRecord: 0.8ms) Started GET “/appointments/136” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"136"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 136], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (41.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '136')[0m
Rendered appointments/show.html.erb within layouts/application (144.8ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 172], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 169ms (Views: 105.8ms | ActiveRecord: 42.4ms) Started POST “/appointments.136” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 172], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 136], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 172], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 172], ["room_id", 136], ["created_at", "2019-11-21 23:54:32.167355"], ["updated_at", "2019-11-21 23:54:32.167355"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 172], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$BH2QzhUDPxvQVwESlA7f7.mQta8IZdDY5x/0A/NKFXLvK585pjfpe"], ["created_at", "2019-11-21 23:54:32.184856"], ["updated_at", "2019-11-21 23:54:32.184856"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:32.197816"], ["last_sign_in_at", "2019-11-21 23:54:32.197816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.198503"], ["id", 173]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 173], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:32.211903"], ["updated_at", "2019-11-21 23:54:32.211903"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:32.214013"], ["updated_at", "2019-11-21 23:54:32.214013"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 173], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms) Started GET “/appointments/138” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"138"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 138], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '138')[0m
Rendered appointments/show.html.erb within layouts/application (1.4ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 173], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 1.2ms) Started POST “/appointments.138” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 173], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 173], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$zCXmxf0zoM82kUwguBYWNuwDEFpCOU7rhPhiHBiPuf9XIIA2PSSKa"], ["created_at", "2019-11-21 23:54:32.274011"], ["updated_at", "2019-11-21 23:54:32.274011"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:32.287232"], ["last_sign_in_at", "2019-11-21 23:54:32.287232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.287801"], ["id", 174]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 174], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-21 23:54:32.298758"], ["updated_at", "2019-11-21 23:54:32.298758"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 174], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 174], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/140” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"140"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 174], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 140], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 140]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 174], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$j3b3m65GnQFL7GqKM5QMlOuVmAqdGtDy0Bne3IlcvWfwrmtoWqaVm"], ["created_at", "2019-11-21 23:54:32.346207"], ["updated_at", "2019-11-21 23:54:32.346207"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-21 23:54:32.348709"], ["updated_at", "2019-11-21 23:54:32.348709"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:32.377885"], ["last_sign_in_at", "2019-11-21 23:54:32.377885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.378509"], ["id", 175]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 175], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 175], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started GET “/rooms/141/edit” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"141"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 175], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 25ms (Views: 7.2ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/141” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"141"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 175], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-21 23:54:32.445829"], ["id", 141]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/141 Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/rooms/141” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"141"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 175], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 2.1ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$4meE0RN3qnS1eLeg8dF3ueyGodTmqjJNICQ.zyUPLgN7vVLNm75RS"], ["created_at", "2019-11-21 23:54:32.485391"], ["updated_at", "2019-11-21 23:54:32.485391"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:32.498495"], ["last_sign_in_at", "2019-11-21 23:54:32.498495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.499080"], ["id", 176]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 176], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:32.512269"], ["updated_at", "2019-11-21 23:54:32.512269"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:32.514749"], ["updated_at", "2019-11-21 23:54:32.514749"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 176], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$jeXxayQIxJSmjCXumhFNcO619ayjQw6QIB.wUmwfxLrF6.MUiaHm."], ["created_at", "2019-11-21 23:54:32.546597"], ["updated_at", "2019-11-21 23:54:32.546597"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:32.559536"], ["last_sign_in_at", "2019-11-21 23:54:32.559536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.560106"], ["id", 177]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 177], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:32.573062"], ["updated_at", "2019-11-21 23:54:32.573062"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:32.575027"], ["updated_at", "2019-11-21 23:54:32.575027"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 177], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$RM7cPYYgdlP9rHbUeqgoo.MF7g4KXjXrYPbeQSoG1dSI5E/oC7/HO"], ["created_at", "2019-11-21 23:54:32.603362"], ["updated_at", "2019-11-21 23:54:32.603362"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:32.630159"], ["last_sign_in_at", "2019-11-21 23:54:32.630159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.630771"], ["id", 178]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 178], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (2.1ms) Rendered users/registrations/new.html.erb within layouts/application (27.4ms)
Completed 200 OK in 118ms (Views: 117.5ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$Y8t26uRt/icF7AOeSFzNNekWgU5rZU3m/lfMdS7PwiNNACNZ8oNzq"], ["created_at", "2019-11-21 23:54:32.847548"], ["updated_at", "2019-11-21 23:54:32.847548"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 23:54:32.849333"], ["last_sign_in_at", "2019-11-21 23:54:32.849333"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 23:54:32.849806"], ["id", 179]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 179], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$mNLZA8aN35lRA42eITOZnemrJ3V.L8Zy.jBB52EkdNTmdLBXHLa9i"], ["created_at", "2019-11-21 23:54:32.946803"], ["updated_at", "2019-11-21 23:54:32.946803"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-21 23:54:32.975459"], ["last_sign_in_at", "2019-11-21 23:54:32.975459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.976076"], ["id", 180]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 180], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/users/180/edit” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"180"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 180], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 53ms (Views: 51.8ms | ActiveRecord: 0.5ms) Started PUT “/users/180” for 127.0.0.1 at 2019-11-21 20:54:33 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"180"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 180], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 180], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 180], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-21 23:54:33.073771"], ["id", 180]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 153ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 180], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]] [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (4.2ms)
Completed 200 OK in 312ms (Views: 294.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5KXEXdGDPLetZsblpnKU2OVC4HklwftySZA1PUUZ8R9x4xHEaQpB."], ["created_at", "2019-11-22 00:04:36.529816"], ["updated_at", "2019-11-22 00:04:36.529816"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (45.0ms) Rendered users/sessions/new.html.erb within layouts/application (61.1ms)
Completed 200 OK in 207ms (Views: 203.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:36.813223"], ["last_sign_in_at", "2019-11-22 00:04:36.813223"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:36.813963"], ["id", 181]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 160ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 181], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.1ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 52ms (Views: 34.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$YTOE1kNoBYnzTsiRmn7pUeXSOaIuXjjVYmJnj2eixTExJI7GN5UzS"], ["created_at", "2019-11-22 00:04:37.039405"], ["updated_at", "2019-11-22 00:04:37.039405"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 4ms (ActiveRecord: 0.8ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$dWU/zYoDuNNwSu76aMC4/etn9hkWYsKSdpxlEmP/m8oDQeDYNhaja"], ["created_at", "2019-11-22 00:04:37.134023"], ["updated_at", "2019-11-22 00:04:37.134023"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.2ms) Rendered users/sessions/new.html.erb within layouts/application (5.0ms)
Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.154080"], ["last_sign_in_at", "2019-11-22 00:04:37.154080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.154844"], ["id", 183]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (1.4ms)
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.203315"], ["updated_at", "2019-11-22 00:04:37.203315"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 146], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 183], ["room_id", 146], ["created_at", "2019-11-22 00:04:37.263820"], ["updated_at", "2019-11-22 00:04:37.263820"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 183]] Rendered appointments/my_appointments.html.erb within layouts/application (3.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 74ms (Views: 41.2ms | ActiveRecord: 0.9ms) Started DELETE “/appointments/68” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"68"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 68], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 68]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$PMLoWfkmyg3.ropQPqLokuXNhs6S2K6RYTLkVnLHmb359rWv1wkFi"], ["created_at", "2019-11-22 00:04:37.376741"], ["updated_at", "2019-11-22 00:04:37.376741"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.392581"], ["last_sign_in_at", "2019-11-22 00:04:37.392581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.393158"], ["id", 184]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 184], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:04:37.413734"], ["updated_at", "2019-11-22 00:04:37.413734"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 147], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 184], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 184], ["room_id", 147], ["created_at", "2019-11-22 00:04:37.419257"], ["updated_at", "2019-11-22 00:04:37.419257"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 184], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 184]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/69” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"69"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 69], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 69]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 184], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$2A6X6t7LCNKkZXUT6Y1nzeRoFsM3yHErB2nyqAGu62/LqFBpyGa3C"], ["created_at", "2019-11-22 00:04:37.451296"], ["updated_at", "2019-11-22 00:04:37.451296"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.464559"], ["last_sign_in_at", "2019-11-22 00:04:37.464559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.465139"], ["id", 185]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 185], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.482363"], ["updated_at", "2019-11-22 00:04:37.482363"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 148], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 185], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 185], ["room_id", 148], ["created_at", "2019-11-22 00:04:37.487128"], ["updated_at", "2019-11-22 00:04:37.487128"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 185], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 185]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$BjECN2xR7b/.5bdNkKOHW.89apBfDcA4YKPprAwsH64PB5BSSc73O"], ["created_at", "2019-11-22 00:04:37.508843"], ["updated_at", "2019-11-22 00:04:37.508843"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.522882"], ["last_sign_in_at", "2019-11-22 00:04:37.522882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.523529"], ["id", 186]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 186], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:04:37.533808"], ["updated_at", "2019-11-22 00:04:37.533808"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 149], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 186], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 186], ["room_id", 149], ["created_at", "2019-11-22 00:04:37.539009"], ["updated_at", "2019-11-22 00:04:37.539009"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 186], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 186]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 1.1ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$YmlWPVUUTtG.ZTT1631/nuqDKt55yMhLFhLzu3co2demzCNp1UzMa"], ["created_at", "2019-11-22 00:04:37.562990"], ["updated_at", "2019-11-22 00:04:37.562990"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.576058"], ["last_sign_in_at", "2019-11-22 00:04:37.576058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.577038"], ["id", 187]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 187], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:37.589543"], ["updated_at", "2019-11-22 00:04:37.589543"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.591455"], ["updated_at", "2019-11-22 00:04:37.591455"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 187], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 44.8ms | ActiveRecord: 0.8ms) Started GET “/appointments/150” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"150"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 150], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '150')[0m
Rendered appointments/show.html.erb within layouts/application (10.5ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 187], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 32ms (Views: 12.9ms | ActiveRecord: 1.3ms) Started POST “/appointments.150” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 187], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 150], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 187], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 187], ["room_id", 150], ["created_at", "2019-11-22 00:04:37.721361"], ["updated_at", "2019-11-22 00:04:37.721361"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 187], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$GL2pGPtonRIYQYL6SyLdSOZ4kajKSIjflD9x7rUISc7eRIj5pKZc2"], ["created_at", "2019-11-22 00:04:37.743978"], ["updated_at", "2019-11-22 00:04:37.743978"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.758808"], ["last_sign_in_at", "2019-11-22 00:04:37.758808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.759399"], ["id", 188]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 188], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:37.772192"], ["updated_at", "2019-11-22 00:04:37.772192"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.774012"], ["updated_at", "2019-11-22 00:04:37.774012"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 188], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.9ms) Started GET “/appointments/152” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"152"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 152], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '152')[0m
Rendered appointments/show.html.erb within layouts/application (1.5ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 188], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 1.0ms) Started POST “/appointments.152” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 188], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 188], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$AMutF6wWxVslVs7ZtpoDpePtokzhrf21GqqvZAVohsAtKkPzNW/3i"], ["created_at", "2019-11-22 00:04:37.827112"], ["updated_at", "2019-11-22 00:04:37.827112"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.839931"], ["last_sign_in_at", "2019-11-22 00:04:37.839931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.840555"], ["id", 189]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 189], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:04:37.851644"], ["updated_at", "2019-11-22 00:04:37.851644"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 189], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 189], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/154” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"154"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 189], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 154], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 154]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 189], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$deCa5/MEGs9ASaExdYUS9eTcRsd32FrS/CvOLn9aZ3VKkq6wxWTxS"], ["created_at", "2019-11-22 00:04:37.895508"], ["updated_at", "2019-11-22 00:04:37.895508"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:04:37.897793"], ["updated_at", "2019-11-22 00:04:37.897793"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:37.925846"], ["last_sign_in_at", "2019-11-22 00:04:37.925846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.926391"], ["id", 190]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 190], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 190], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms) Started GET “/rooms/155/edit” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"155"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 190], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 155], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 29ms (Views: 9.8ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/155” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"155"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 190], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 155], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:04:37.993020"], ["id", 155]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/155 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/155” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"155"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 190], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 155], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Itz0m4YGo2yeYIEYJzVrgOgR3Z4mffTS/39t/qcPCxSxZW4egRdai"], ["created_at", "2019-11-22 00:04:38.031058"], ["updated_at", "2019-11-22 00:04:38.031058"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:38.043535"], ["last_sign_in_at", "2019-11-22 00:04:38.043535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.044434"], ["id", 191]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 191], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:38.056017"], ["updated_at", "2019-11-22 00:04:38.056017"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:38.057694"], ["updated_at", "2019-11-22 00:04:38.057694"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 191], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$.Fs8FPQLxtny2Dv91.c1LeAOFVDpXTZay/3TUdEQDFIUeaCYcTlrC"], ["created_at", "2019-11-22 00:04:38.085607"], ["updated_at", "2019-11-22 00:04:38.085607"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:38.099374"], ["last_sign_in_at", "2019-11-22 00:04:38.099374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.100004"], ["id", 192]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 192], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:38.111965"], ["updated_at", "2019-11-22 00:04:38.111965"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:38.113561"], ["updated_at", "2019-11-22 00:04:38.113561"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 192], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$d938PZAuTkU9eUUelAvO1..hvd0ZToE9bVT0anykjEP0iOE91Miiq"], ["created_at", "2019-11-22 00:04:38.142078"], ["updated_at", "2019-11-22 00:04:38.142078"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:38.167982"], ["last_sign_in_at", "2019-11-22 00:04:38.167982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.168755"], ["id", 193]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 193], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.2ms) Rendered users/registrations/new.html.erb within layouts/application (17.3ms)
Completed 200 OK in 107ms (Views: 106.6ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$S/yck8YyFvObNqSPdCWjuelPAm87YS.vMjcxhKrSw4uZsyEjBQBZW"], ["created_at", "2019-11-22 00:04:38.351193"], ["updated_at", "2019-11-22 00:04:38.351193"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:04:38.353116"], ["last_sign_in_at", "2019-11-22 00:04:38.353116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:04:38.353606"], ["id", 194]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 83ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 194], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$qxJh1cyyEAORW3r6iOP3g.NiFo8lUTD6I2pokVf7SLZUWARJj1/2G"], ["created_at", "2019-11-22 00:04:38.448374"], ["updated_at", "2019-11-22 00:04:38.448374"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:04:38.473762"], ["last_sign_in_at", "2019-11-22 00:04:38.473762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.474303"], ["id", 195]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 195], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/users/195/edit” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"195"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 195], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.4ms) Started PUT “/users/195” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"195"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 195], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 195], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 195], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:04:38.534555"], ["id", 195]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 151ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 195], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]] [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (4.1ms)
Completed 200 OK in 320ms (Views: 301.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$FNn264gV1Acxdhp01tmwfeffzGptXEZ8nkH3guuOruXdydt83Pjlq"], ["created_at", "2019-11-22 00:13:37.083466"], ["updated_at", "2019-11-22 00:13:37.083466"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (45.8ms) Rendered users/sessions/new.html.erb within layouts/application (63.1ms)
Completed 200 OK in 224ms (Views: 221.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:37.375771"], ["last_sign_in_at", "2019-11-22 00:13:37.375771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:37.376611"], ["id", 196]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 162ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 196], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 52ms (Views: 33.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$z6pUKIQAI91OKOo4WSMRIexk2WHzEW6sWKV7Zqb5BzC/SXK.Eu43G"], ["created_at", "2019-11-22 00:13:37.604138"], ["updated_at", "2019-11-22 00:13:37.604138"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$cSNlsyECXP.8xECAbuKFfOn7AQiqNwj4HtiMW9LhSpWTFj9e.096e"], ["created_at", "2019-11-22 00:13:37.735188"], ["updated_at", "2019-11-22 00:13:37.735188"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:37.757021"], ["last_sign_in_at", "2019-11-22 00:13:37.757021"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:37.757828"], ["id", 198]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 198], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (2.0ms)
Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:37.804845"], ["updated_at", "2019-11-22 00:13:37.804845"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 160], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 198], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 198], ["room_id", 160], ["created_at", "2019-11-22 00:13:37.844591"], ["updated_at", "2019-11-22 00:13:37.844591"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 198], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 198]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 74ms (Views: 40.6ms | ActiveRecord: 1.0ms) Started DELETE “/appointments/73” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"73"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 73], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 73]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 198], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$j3.hxh.I579xEQ5/P1ONsOB2L2kOQ7Frv7RAkymfk1UGqfyg.SP6e"], ["created_at", "2019-11-22 00:13:37.959048"], ["updated_at", "2019-11-22 00:13:37.959048"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:37.985463"], ["last_sign_in_at", "2019-11-22 00:13:37.985463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:37.986168"], ["id", 199]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 199], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:13:37.996438"], ["updated_at", "2019-11-22 00:13:37.996438"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 161], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 199], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 199], ["room_id", 161], ["created_at", "2019-11-22 00:13:38.001802"], ["updated_at", "2019-11-22 00:13:38.001802"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 199], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 199]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/74” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"74"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 74], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 74]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 199], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$BsBcLQkxrfdP8S8HZCxD7esWNT3jyFuTBaQ35yc9TwpebuLoY/d3q"], ["created_at", "2019-11-22 00:13:38.033057"], ["updated_at", "2019-11-22 00:13:38.033057"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.046895"], ["last_sign_in_at", "2019-11-22 00:13:38.046895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.047486"], ["id", 200]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 200], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.064968"], ["updated_at", "2019-11-22 00:13:38.064968"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 162], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 200], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 200], ["room_id", 162], ["created_at", "2019-11-22 00:13:38.071344"], ["updated_at", "2019-11-22 00:13:38.071344"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 200], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 200]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$VI10ltIEWxoM7UpeWRtzSuVLD.rp5mcrgbeIAW5alLIQK/ogEgZR6"], ["created_at", "2019-11-22 00:13:38.093616"], ["updated_at", "2019-11-22 00:13:38.093616"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.107105"], ["last_sign_in_at", "2019-11-22 00:13:38.107105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.107838"], ["id", 201]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 201], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:13:38.117331"], ["updated_at", "2019-11-22 00:13:38.117331"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 163], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 201], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 201], ["room_id", 163], ["created_at", "2019-11-22 00:13:38.122646"], ["updated_at", "2019-11-22 00:13:38.122646"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 201], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 201]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8bZwI9kP4yD.6m9KImZtyeb4dllAgwH5mCkAWDOcqFZnhGOYvPZqm"], ["created_at", "2019-11-22 00:13:38.146814"], ["updated_at", "2019-11-22 00:13:38.146814"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.163449"], ["last_sign_in_at", "2019-11-22 00:13:38.163449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.164149"], ["id", 202]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 202], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.178739"], ["updated_at", "2019-11-22 00:13:38.178739"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.181481"], ["updated_at", "2019-11-22 00:13:38.181481"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 202], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 61ms (Views: 40.2ms | ActiveRecord: 0.9ms) Started GET “/appointments/164” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"164"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 164], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '164')[0m
Rendered appointments/show.html.erb within layouts/application (10.6ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 202], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 32ms (Views: 13.0ms | ActiveRecord: 1.2ms) Started POST “/appointments.164” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 202], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 164], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 202], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 202], ["room_id", 164], ["created_at", "2019-11-22 00:13:38.317542"], ["updated_at", "2019-11-22 00:13:38.317542"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 202], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5q4tcufZ0gQgo5e7HTTcueo845383TqZq6zzQlUoP58vK/LPMtmCW"], ["created_at", "2019-11-22 00:13:38.334584"], ["updated_at", "2019-11-22 00:13:38.334584"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.348947"], ["last_sign_in_at", "2019-11-22 00:13:38.348947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.349506"], ["id", 203]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 203], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.361702"], ["updated_at", "2019-11-22 00:13:38.361702"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.363473"], ["updated_at", "2019-11-22 00:13:38.363473"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 203], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/166” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"166"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 166], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '166')[0m
Rendered appointments/show.html.erb within layouts/application (1.3ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 203], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started POST “/appointments.166” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 203], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 203], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$TwbDlpzsPAKv17vvyG.Ize.qnU5OHTxZ/9xkx53fmRN14x0o7EYM6"], ["created_at", "2019-11-22 00:13:38.416822"], ["updated_at", "2019-11-22 00:13:38.416822"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.429743"], ["last_sign_in_at", "2019-11-22 00:13:38.429743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.430395"], ["id", 204]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 204], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:13:38.441853"], ["updated_at", "2019-11-22 00:13:38.441853"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 204], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 204], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/168” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"168"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 204], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 168], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 168]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 204], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$WQ31SQlzpB31BTjg52gQ.ugI7v4zadiOV..tP9Zo/5j2uzMTbCMlm"], ["created_at", "2019-11-22 00:13:38.482663"], ["updated_at", "2019-11-22 00:13:38.482663"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:13:38.484736"], ["updated_at", "2019-11-22 00:13:38.484736"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.510307"], ["last_sign_in_at", "2019-11-22 00:13:38.510307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.510927"], ["id", 205]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 205], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 205], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms/169/edit” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"169"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 205], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 169], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (9.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 29ms (Views: 11.5ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/169” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"169"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 205], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 169], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:13:38.578848"], ["id", 169]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/169 Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/rooms/169” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"169"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 205], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 169], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Gp4jBADa6I31xGYqwvvkEeW381pcjFUANAzouBHPTNGihKyw3TEPa"], ["created_at", "2019-11-22 00:13:38.617312"], ["updated_at", "2019-11-22 00:13:38.617312"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.630799"], ["last_sign_in_at", "2019-11-22 00:13:38.630799"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.631352"], ["id", 206]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 206], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.642526"], ["updated_at", "2019-11-22 00:13:38.642526"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.644205"], ["updated_at", "2019-11-22 00:13:38.644205"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 206], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KoMdXcIQz5W974BLXhu8VeKcmnZoGlvo28ZCTDOvpYXt13.TbebdO"], ["created_at", "2019-11-22 00:13:38.672439"], ["updated_at", "2019-11-22 00:13:38.672439"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.686440"], ["last_sign_in_at", "2019-11-22 00:13:38.686440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.687077"], ["id", 207]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 207], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.699560"], ["updated_at", "2019-11-22 00:13:38.699560"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.701372"], ["updated_at", "2019-11-22 00:13:38.701372"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 207], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$rt0Fqp6eFQYT2u0MJ7l7cebtTWDI3HXQ471BdlaRMoCw/wIZb.2MC"], ["created_at", "2019-11-22 00:13:38.729367"], ["updated_at", "2019-11-22 00:13:38.729367"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:38.754813"], ["last_sign_in_at", "2019-11-22 00:13:38.754813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.755413"], ["id", 208]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 208], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.2ms) Rendered users/registrations/new.html.erb within layouts/application (17.1ms)
Completed 200 OK in 106ms (Views: 105.9ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$KoQ7pyrIqE2ctgkWTwrsaewEfv5vHgtb5mwwekROEXQCnuWgXWP/m"], ["created_at", "2019-11-22 00:13:38.937019"], ["updated_at", "2019-11-22 00:13:38.937019"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:13:38.939062"], ["last_sign_in_at", "2019-11-22 00:13:38.939062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:13:38.939750"], ["id", 209]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 84ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 209], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$/qg6dyNcNGRBOvIuzbm0d.LkhXVTyJCRzytjObWesrTEpWrW.zgWi"], ["created_at", "2019-11-22 00:13:39.034151"], ["updated_at", "2019-11-22 00:13:39.034151"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:13:39.061911"], ["last_sign_in_at", "2019-11-22 00:13:39.061911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:39.062625"], ["id", 210]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 210], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/users/210/edit” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"210"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 210], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.5ms) Started PUT “/users/210” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"210"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 210], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 210], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 210], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:13:39.123879"], ["id", 210]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 154ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 210], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.5ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NBR60YlY4ahovMDbCyeoreF3zprNL7o7RRRPASt1swDMmW0WqfHES"], ["created_at", "2019-11-22 00:30:08.587629"], ["updated_at", "2019-11-22 00:30:08.587629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.590941"], ["updated_at", "2019-11-22 00:30:08.590941"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.615592"], ["last_sign_in_at", "2019-11-22 00:30:08.615592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.616383"], ["id", 211]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"174"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 174], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 211], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 211], ["room_id", 174], ["created_at", "2019-11-22 00:30:08.660517"], ["updated_at", "2019-11-22 00:30:08.660517"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.1ms)
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 174], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$J7nKV.r72BX6FliNEfKUIeHa75dJfzxiWtRtM/7caH0rZyBrJ05Ge"], ["created_at", "2019-11-22 00:30:08.684963"], ["updated_at", "2019-11-22 00:30:08.684963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.687256"], ["updated_at", "2019-11-22 00:30:08.687256"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.689974"], ["last_sign_in_at", "2019-11-22 00:30:08.689974"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.690503"], ["id", 212]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"175"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 175], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 212], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 212], ["room_id", 175], ["created_at", "2019-11-22 00:30:08.695800"], ["updated_at", "2019-11-22 00:30:08.695800"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3RoN.9K8boBvqAuOFJzwG.Atq3EPKFWyT.UUpSk32brk.pPhp5nsq"], ["created_at", "2019-11-22 00:30:08.704904"], ["updated_at", "2019-11-22 00:30:08.704904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.707240"], ["updated_at", "2019-11-22 00:30:08.707240"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.709978"], ["last_sign_in_at", "2019-11-22 00:30:08.709978"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.710622"], ["id", 213]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"176"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 176], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3CcULtv9nwo6kKcg87ivze.bQO/f027y9UrJLSyTvtwKQgimnEHe2"], ["created_at", "2019-11-22 00:30:08.720615"], ["updated_at", "2019-11-22 00:30:08.720615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.722819"], ["updated_at", "2019-11-22 00:30:08.722819"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.725052"], ["last_sign_in_at", "2019-11-22 00:30:08.725052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.725576"], ["id", 214]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"177"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0wii/X3MHH21/K9tz7C.dulcwNoWMwYLU9QKovei0nd58mpVSfu8C"], ["created_at", "2019-11-22 00:30:08.736160"], ["updated_at", "2019-11-22 00:30:08.736160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.738401"], ["updated_at", "2019-11-22 00:30:08.738401"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 178], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 215], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 215], ["room_id", 178], ["created_at", "2019-11-22 00:30:08.742740"], ["updated_at", "2019-11-22 00:30:08.742740"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/178” for 127.0.0.1 at 2019-11-21 21:30:08 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.745738"], ["last_sign_in_at", "2019-11-22 00:30:08.745738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.746319"], ["id", 215]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"178"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 178], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '178')[0m
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 358ms (Views: 339.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iJvbMHuikTmh/FFlvcLeFeJxjhHTCIJX07F5QCBpCJQ6m5259NTFm"], ["created_at", "2019-11-22 00:30:09.115199"], ["updated_at", "2019-11-22 00:30:09.115199"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.117314"], ["updated_at", "2019-11-22 00:30:09.117314"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 179], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 216], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 216], ["room_id", 179], ["created_at", "2019-11-22 00:30:09.121328"], ["updated_at", "2019-11-22 00:30:09.121328"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 179], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 216], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 216], ["room_id", 179], ["created_at", "2019-11-22 00:30:09.125140"], ["updated_at", "2019-11-22 00:30:09.125140"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.127372"], ["last_sign_in_at", "2019-11-22 00:30:09.127372"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.127919"], ["id", 216]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 216]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 36ms (Views: 4.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0N6KQECWiG1uCMYJFhwjUuCDvVA7U9AaRH9lknqfMV3qGwVxYSXai"], ["created_at", "2019-11-22 00:30:09.174203"], ["updated_at", "2019-11-22 00:30:09.174203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.176845"], ["updated_at", "2019-11-22 00:30:09.176845"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 180], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 217], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 217], ["room_id", 180], ["created_at", "2019-11-22 00:30:09.182391"], ["updated_at", "2019-11-22 00:30:09.182391"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 180], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 217], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 217], ["room_id", 180], ["created_at", "2019-11-22 00:30:09.186641"], ["updated_at", "2019-11-22 00:30:09.186641"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.189379"], ["last_sign_in_at", "2019-11-22 00:30:09.189379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.189937"], ["id", 217]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 217]] Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$MUPGxjoJWhoQmz6nNw9aOuBeMrvf1hxiitQ0sk20AxNqBFnouktni"], ["created_at", "2019-11-22 00:30:09.205377"], ["updated_at", "2019-11-22 00:30:09.205377"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.207523"], ["updated_at", "2019-11-22 00:30:09.207523"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 181], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 218], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 218], ["room_id", 181], ["created_at", "2019-11-22 00:30:09.213294"], ["updated_at", "2019-11-22 00:30:09.213294"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/85” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.215365"], ["last_sign_in_at", "2019-11-22 00:30:09.215365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.215850"], ["id", 218]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"85"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 85], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 85]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rBfi2rcPe64Q4pC6KlWsRucJVL17j4z0U89tBZv6y9OJAbz.Kb75W"], ["created_at", "2019-11-22 00:30:09.229283"], ["updated_at", "2019-11-22 00:30:09.229283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.231736"], ["last_sign_in_at", "2019-11-22 00:30:09.231736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.232309"], ["id", 219]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$38paix0hHDIdMYCAIT1aGeIIg7vKW27ZCVitns461eRixfW3d5jwG"], ["created_at", "2019-11-22 00:30:09.276483"], ["updated_at", "2019-11-22 00:30:09.276483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.279018"], ["updated_at", "2019-11-22 00:30:09.279018"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 182], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 220], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 220], ["room_id", 182], ["created_at", "2019-11-22 00:30:09.283550"], ["updated_at", "2019-11-22 00:30:09.283550"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 182], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 220], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 220], ["room_id", 182], ["created_at", "2019-11-22 00:30:09.287141"], ["updated_at", "2019-11-22 00:30:09.287141"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.289203"], ["last_sign_in_at", "2019-11-22 00:30:09.289203"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.289746"], ["id", 220]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 182], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 220], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 220], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TUtVudJMEM7FsWvqahXnVeVsBR.AsID93o4IdSCnxHrNajU5qAdIa"], ["created_at", "2019-11-22 00:30:09.303201"], ["updated_at", "2019-11-22 00:30:09.303201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.305753"], ["updated_at", "2019-11-22 00:30:09.305753"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 221], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 221], ["room_id", 183], ["created_at", "2019-11-22 00:30:09.310277"], ["updated_at", "2019-11-22 00:30:09.310277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 221], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 221], ["room_id", 183], ["created_at", "2019-11-22 00:30:09.327999"], ["updated_at", "2019-11-22 00:30:09.327999"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.330544"], ["last_sign_in_at", "2019-11-22 00:30:09.330544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.331136"], ["id", 221]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 221], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 221], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i/eEuN2Ii88iDQlBRaWt5uC9Y8uU6k77fm51ciOEZe82ZtJqXmj9G"], ["created_at", "2019-11-22 00:30:09.346959"], ["updated_at", "2019-11-22 00:30:09.346959"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.349035"], ["updated_at", "2019-11-22 00:30:09.349035"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 184], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 222], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 222], ["room_id", 184], ["created_at", "2019-11-22 00:30:09.353047"], ["updated_at", "2019-11-22 00:30:09.353047"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 184], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 222], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 222], ["room_id", 184], ["created_at", "2019-11-22 00:30:09.356775"], ["updated_at", "2019-11-22 00:30:09.356775"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.358913"], ["last_sign_in_at", "2019-11-22 00:30:09.358913"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.359443"], ["id", 222]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YVJDpgOzCURGP2S62IHAZOdR4EeeFqFhyQAMNkyPzOJfr0dyXYsF6"], ["created_at", "2019-11-22 00:30:09.370185"], ["updated_at", "2019-11-22 00:30:09.370185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.372276"], ["updated_at", "2019-11-22 00:30:09.372276"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 185], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 223], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 223], ["room_id", 185], ["created_at", "2019-11-22 00:30:09.376425"], ["updated_at", "2019-11-22 00:30:09.376425"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 185], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 223], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 223], ["room_id", 185], ["created_at", "2019-11-22 00:30:09.381819"], ["updated_at", "2019-11-22 00:30:09.381819"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.384029"], ["last_sign_in_at", "2019-11-22 00:30:09.384029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.384543"], ["id", 223]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5e596Ydl/5q76rJYWnsXluoKN1v21X7EndZSp010oitNemzvmn.n."], ["created_at", "2019-11-22 00:30:09.397630"], ["updated_at", "2019-11-22 00:30:09.397630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.399773"], ["last_sign_in_at", "2019-11-22 00:30:09.399773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.400441"], ["id", 224]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.9ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 69ms (Views: 47.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F6jFUPpDDWb5Kmn6rAcHyeJaQCxV6aPnEwfBGtMlCHiaHFXw1Oism"], ["created_at", "2019-11-22 00:30:09.481385"], ["updated_at", "2019-11-22 00:30:09.481385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.483872"], ["last_sign_in_at", "2019-11-22 00:30:09.483872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.484368"], ["id", 225]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y/5vs7CK61ZZAQqdlicvi.FORcaFvm44ow4QdT2jeXT34R5qpCWlK"], ["created_at", "2019-11-22 00:30:09.496331"], ["updated_at", "2019-11-22 00:30:09.496331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.498737"], ["last_sign_in_at", "2019-11-22 00:30:09.498737"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.499251"], ["id", 226]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3I51z20lhwX3DcAHLaQSxueMehjmmi1XC7QAJ18pBDaakJ2eJiouS"], ["created_at", "2019-11-22 00:30:09.526840"], ["updated_at", "2019-11-22 00:30:09.526840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.529525"], ["last_sign_in_at", "2019-11-22 00:30:09.529525"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.530113"], ["id", 227]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/Qq22GLMJKx20PEf54YeAeotutNO13Dq0x1YS3aq92b6xpOXM5t/W"], ["created_at", "2019-11-22 00:30:09.550125"], ["updated_at", "2019-11-22 00:30:09.550125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.553080"], ["updated_at", "2019-11-22 00:30:09.553080"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/186” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.555524"], ["last_sign_in_at", "2019-11-22 00:30:09.555524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.556001"], ["id", 228]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"186"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 186], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 18ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d7gwZZlG3cYIMw96x7YBB.cDX2qRFcl7Rzazo8esW.KnvHQWPMqUm"], ["created_at", "2019-11-22 00:30:09.582440"], ["updated_at", "2019-11-22 00:30:09.582440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.584739"], ["updated_at", "2019-11-22 00:30:09.584739"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/187” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.586951"], ["last_sign_in_at", "2019-11-22 00:30:09.586951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.587564"], ["id", 229]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"187"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 187], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.597320"], ["updated_at", "2019-11-22 00:30:09.597320"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/188” for 127.0.0.1 at 2019-11-21 21:30:09 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"188"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6NQhDl9TDj6Ml0REt5NFueibujdP.q2InikhgbS/rT5iE78g2oHnu"], ["created_at", "2019-11-22 00:30:09.608551"], ["updated_at", "2019-11-22 00:30:09.608551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.610755"], ["updated_at", "2019-11-22 00:30:09.610755"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/189/edit” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.613086"], ["last_sign_in_at", "2019-11-22 00:30:09.613086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.613641"], ["id", 230]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"189"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 189], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)
Completed 200 OK in 22ms (Views: 5.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eVtIm/6mYyZvFAxMSyrap.PbO0CMgaHNDKXfkwtwvktteXcB1Y7bS"], ["created_at", "2019-11-22 00:30:09.646236"], ["updated_at", "2019-11-22 00:30:09.646236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.650017"], ["updated_at", "2019-11-22 00:30:09.650017"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/190/edit” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.653294"], ["last_sign_in_at", "2019-11-22 00:30:09.653294"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.653932"], ["id", 231]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"190"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 190], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.668075"], ["updated_at", "2019-11-22 00:30:09.668075"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/191” for 127.0.0.1 at 2019-11-21 21:30:09 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"191"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a1ZTkU56CYtOS/EQn.wMaeH/9In2jcKlze/vHeezlH5z7x8P3j/AS"], ["created_at", "2019-11-22 00:30:09.683416"], ["updated_at", "2019-11-22 00:30:09.683416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.690938"], ["last_sign_in_at", "2019-11-22 00:30:09.690938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.691563"], ["id", 232]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.697361"], ["updated_at", "2019-11-22 00:30:09.697361"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OR8X2YTzA02GFJhVCXsPNerHhVNbksYvLRyPkJRbI2YuLbtAN35r2"], ["created_at", "2019-11-22 00:30:09.707311"], ["updated_at", "2019-11-22 00:30:09.707311"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.710261"], ["last_sign_in_at", "2019-11-22 00:30:09.710261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.711024"], ["id", 233]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.715792"], ["updated_at", "2019-11-22 00:30:09.715792"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3BgLJB9TN1uXRy1dvUueP./ttHFGIS61HjhBCMR14GAI6wxzBeA.q"], ["created_at", "2019-11-22 00:30:09.723886"], ["updated_at", "2019-11-22 00:30:09.723886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.726591"], ["last_sign_in_at", "2019-11-22 00:30:09.726591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.727017"], ["id", 234]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$69s.CEHgzdoXFDe7ztg/le1r.NQBb4OHDa0jw8C1kjPhuYuiXV/ey"], ["created_at", "2019-11-22 00:30:09.738531"], ["updated_at", "2019-11-22 00:30:09.738531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.741379"], ["last_sign_in_at", "2019-11-22 00:30:09.741379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.741793"], ["id", 235]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4wt43RE0gqFVBToNB0RMoO9gF3pkAKdNk708K6Jhqff/lEtAs8BR2"], ["created_at", "2019-11-22 00:30:09.753418"], ["updated_at", "2019-11-22 00:30:09.753418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.756857"], ["last_sign_in_at", "2019-11-22 00:30:09.756857"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.757289"], ["id", 236]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6mLMN/cZD5hd0eA1C3dEVOZeiJbVLUn.8yGpjhSl2FAXZR6fveA3m"], ["created_at", "2019-11-22 00:30:09.768998"], ["updated_at", "2019-11-22 00:30:09.768998"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.771334"], ["updated_at", "2019-11-22 00:30:09.771334"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/194” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.773878"], ["last_sign_in_at", "2019-11-22 00:30:09.773878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.774619"], ["id", 237]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"194"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 194], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 00:30:09.778484"], ["id", 194]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/194 Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ecKLGTGtvc5DrHSpimYNjOT5ecAbsTJzOe2PT4jARrSyzqbYZN5/G"], ["created_at", "2019-11-22 00:30:09.787301"], ["updated_at", "2019-11-22 00:30:09.787301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.789542"], ["updated_at", "2019-11-22 00:30:09.789542"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/195” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.791937"], ["last_sign_in_at", "2019-11-22 00:30:09.791937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.792503"], ["id", 238]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"195"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 195], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 00:30:09.797168"], ["id", 195]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/195 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gWJ3G9Fzz/9SPzr46m/fF.3HgTUm4RCDa81LQZDFjzVzVDPemQ5A."], ["created_at", "2019-11-22 00:30:09.806446"], ["updated_at", "2019-11-22 00:30:09.806446"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.808835"], ["updated_at", "2019-11-22 00:30:09.808835"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/196” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.812419"], ["last_sign_in_at", "2019-11-22 00:30:09.812419"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.813049"], ["id", 239]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"196"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 196], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xtN490OlmFylcxA22/Ol..ZizKJI74mgLOX7oV.6x7zvHh43Z/r96"], ["created_at", "2019-11-22 00:30:09.829615"], ["updated_at", "2019-11-22 00:30:09.829615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.831959"], ["updated_at", "2019-11-22 00:30:09.831959"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/197” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.834676"], ["last_sign_in_at", "2019-11-22 00:30:09.834676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.835207"], ["id", 240]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"197"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 197], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BBj1EvigBI2/l/wsud/gI.edraZVeWNcQFfsjsWpSrjLP6QRVNlry"], ["created_at", "2019-11-22 00:30:09.851495"], ["updated_at", "2019-11-22 00:30:09.851495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.854633"], ["last_sign_in_at", "2019-11-22 00:30:09.854633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.855182"], ["id", 241]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lDKw5uTf4GlkXRb5UXvOOujdtLoCq/ge/5mhR8UrAzlnmhoQHq60O"], ["created_at", "2019-11-22 00:30:09.867718"], ["updated_at", "2019-11-22 00:30:09.867718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.870208"], ["updated_at", "2019-11-22 00:30:09.870208"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/198” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.872354"], ["last_sign_in_at", "2019-11-22 00:30:09.872354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.872853"], ["id", 242]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"198"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 198], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 198]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$du5pGDBkmGO00BJobU8EVOD84qMJ1E9/QEr.ztoNnU/X5YOQXJ.X2"], ["created_at", "2019-11-22 00:30:09.895948"], ["updated_at", "2019-11-22 00:30:09.895948"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.899329"], ["updated_at", "2019-11-22 00:30:09.899329"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/199” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.901316"], ["last_sign_in_at", "2019-11-22 00:30:09.901316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.901876"], ["id", 243]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"199"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 199], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 199]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9jtYypFFClQ0NqLeJRJid.eFywSP06IiwpH0/Nvx5jn2jF.51Bqsq"], ["created_at", "2019-11-22 00:30:09.913516"], ["updated_at", "2019-11-22 00:30:09.913516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.915727"], ["updated_at", "2019-11-22 00:30:09.915727"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/200” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.917911"], ["last_sign_in_at", "2019-11-22 00:30:09.917911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.918553"], ["id", 244]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"200"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L1n2fQq91AOZSgJq3G69l.QbRyf.TbL1tUQxE.2rdAaecTAInH.8m"], ["created_at", "2019-11-22 00:30:09.927854"], ["updated_at", "2019-11-22 00:30:09.927854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.930611"], ["updated_at", "2019-11-22 00:30:09.930611"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/201” for 127.0.0.1 at 2019-11-21 21:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.932607"], ["last_sign_in_at", "2019-11-22 00:30:09.932607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.933137"], ["id", 245]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"201"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:31:58 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (4.2ms)
Completed 200 OK in 320ms (Views: 301.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$zoCj1xId7skChDuuhsaQHOLY/07s7lhynJqkdOq4BExkL/wfgQWIe"], ["created_at", "2019-11-22 00:31:59.285756"], ["updated_at", "2019-11-22 00:31:59.285756"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (44.2ms) Rendered users/sessions/new.html.erb within layouts/application (60.4ms)
Completed 200 OK in 215ms (Views: 212.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:31:59.565975"], ["last_sign_in_at", "2019-11-22 00:31:59.565975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:31:59.566800"], ["id", 246]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 160ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 246], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 53ms (Views: 34.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$UVrht6nkgCTTtWYDThPOYe4yZvEHISgyLh7QsnU/aZJ7W0sazN9dW"], ["created_at", "2019-11-22 00:31:59.793813"], ["updated_at", "2019-11-22 00:31:59.793813"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$2DMpGUkSPvTDSXD8zi87teM2y12DFYGDzYYu1wC8hzp.rDKvVIqkC"], ["created_at", "2019-11-22 00:31:59.929256"], ["updated_at", "2019-11-22 00:31:59.929256"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:31:59.947174"], ["last_sign_in_at", "2019-11-22 00:31:59.947174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:31:59.947966"], ["id", 248]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 248], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (1.6ms)
Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:31:59.989894"], ["updated_at", "2019-11-22 00:31:59.989894"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 202], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 248], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 248], ["room_id", 202], ["created_at", "2019-11-22 00:32:00.029623"], ["updated_at", "2019-11-22 00:32:00.029623"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 248], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 248]] Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 75ms (Views: 41.7ms | ActiveRecord: 1.2ms) Started DELETE “/appointments/94” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"94"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 94], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 94]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 248], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (1.6ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$lz6MyaXABgta2o/GOkHhk.KkAJqtNoa/BZmNblILpp4FG7/63GbaS"], ["created_at", "2019-11-22 00:32:00.144392"], ["updated_at", "2019-11-22 00:32:00.144392"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.172922"], ["last_sign_in_at", "2019-11-22 00:32:00.172922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.173557"], ["id", 249]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 249], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:32:00.183601"], ["updated_at", "2019-11-22 00:32:00.183601"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 203], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 249], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 249], ["room_id", 203], ["created_at", "2019-11-22 00:32:00.189146"], ["updated_at", "2019-11-22 00:32:00.189146"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 249], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 249]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/95” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"95"}
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 95], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 95]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 249], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$R8vP8L5/dEuq4WZGtrU6x.aFm5z4ERjPz7/fz2.ipfV5UniHa/w/y"], ["created_at", "2019-11-22 00:32:00.224151"], ["updated_at", "2019-11-22 00:32:00.224151"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.237253"], ["last_sign_in_at", "2019-11-22 00:32:00.237253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.237833"], ["id", 250]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 250], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.255407"], ["updated_at", "2019-11-22 00:32:00.255407"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 204], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 250], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 250], ["room_id", 204], ["created_at", "2019-11-22 00:32:00.261835"], ["updated_at", "2019-11-22 00:32:00.261835"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 250], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 250]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$RJ2/AjVe1gSJaQGqo/KuqOj8P/jACc/cF/NVi.oMPhPCc/hUi9TVu"], ["created_at", "2019-11-22 00:32:00.283410"], ["updated_at", "2019-11-22 00:32:00.283410"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.296597"], ["last_sign_in_at", "2019-11-22 00:32:00.296597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.297170"], ["id", 251]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 251], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:32:00.306857"], ["updated_at", "2019-11-22 00:32:00.306857"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 205], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 251], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 251], ["room_id", 205], ["created_at", "2019-11-22 00:32:00.312454"], ["updated_at", "2019-11-22 00:32:00.312454"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 251], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 251]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZWtYHycNEH8W4K/lMr9ZY.C0SR4fRvVuvo2Wr7Op7yXNaKguUnmEm"], ["created_at", "2019-11-22 00:32:00.336224"], ["updated_at", "2019-11-22 00:32:00.336224"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.351277"], ["last_sign_in_at", "2019-11-22 00:32:00.351277"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.352094"], ["id", 252]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 252], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.366418"], ["updated_at", "2019-11-22 00:32:00.366418"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.368664"], ["updated_at", "2019-11-22 00:32:00.368664"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 252], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 62ms (Views: 41.8ms | ActiveRecord: 0.9ms) Started GET “/appointments/206” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"206"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 206], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '206')[0m
Rendered appointments/show.html.erb within layouts/application (10.5ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 252], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 33ms (Views: 13.5ms | ActiveRecord: 1.4ms) Started POST “/appointments.206” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 252], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 206], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 252], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 252], ["room_id", 206], ["created_at", "2019-11-22 00:32:00.504949"], ["updated_at", "2019-11-22 00:32:00.504949"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 252], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$q7IapeOB4hTG0ZsA9ruPguQd6FTXycN3MAaLXMfdm7yEnlXFxCOZ."], ["created_at", "2019-11-22 00:32:00.524645"], ["updated_at", "2019-11-22 00:32:00.524645"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.538135"], ["last_sign_in_at", "2019-11-22 00:32:00.538135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.538683"], ["id", 253]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 253], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.550158"], ["updated_at", "2019-11-22 00:32:00.550158"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.551887"], ["updated_at", "2019-11-22 00:32:00.551887"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 253], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/208” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"208"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 208], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '208')[0m
Rendered appointments/show.html.erb within layouts/application (1.3ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 253], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 1.0ms) Started POST “/appointments.208” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 253], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 253], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$PxY6F2oiCKL3eC3FO6AF3O5uibqvRUBEOLPiy1N7I5CctcIZTc8Jq"], ["created_at", "2019-11-22 00:32:00.603797"], ["updated_at", "2019-11-22 00:32:00.603797"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.617449"], ["last_sign_in_at", "2019-11-22 00:32:00.617449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.618042"], ["id", 254]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 254], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:32:00.628441"], ["updated_at", "2019-11-22 00:32:00.628441"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 254], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 254], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/210” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"210"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 254], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 210], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 210]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 254], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$iJkM3VMJBtu9FHEX5CgFo.rxvad.4p8MuDLktW5JxH.hOHn.4fxQW"], ["created_at", "2019-11-22 00:32:00.670061"], ["updated_at", "2019-11-22 00:32:00.670061"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:32:00.672348"], ["updated_at", "2019-11-22 00:32:00.672348"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.697515"], ["last_sign_in_at", "2019-11-22 00:32:00.697515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.698458"], ["id", 255]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 255], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 255], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/rooms/211/edit” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"211"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 255], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 211], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 28ms (Views: 10.0ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/211” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"211"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 255], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 211], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:32:00.768235"], ["id", 211]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/211 Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/rooms/211” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"211"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 255], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 211], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$R3dIeGFSaROqhMn4xDgA2uvVCjCDAnwrzl2EhGf.lMJEABp.k6a.a"], ["created_at", "2019-11-22 00:32:00.808775"], ["updated_at", "2019-11-22 00:32:00.808775"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.822944"], ["last_sign_in_at", "2019-11-22 00:32:00.822944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.823583"], ["id", 256]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 256], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.835416"], ["updated_at", "2019-11-22 00:32:00.835416"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.837240"], ["updated_at", "2019-11-22 00:32:00.837240"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 256], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$diNE.oYMAeJVqTQ1qAk5JeAgsNGGOMytQH0dadEEozyHapWq2SvJS"], ["created_at", "2019-11-22 00:32:00.863571"], ["updated_at", "2019-11-22 00:32:00.863571"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.876697"], ["last_sign_in_at", "2019-11-22 00:32:00.876697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.877265"], ["id", 257]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 257], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.889534"], ["updated_at", "2019-11-22 00:32:00.889534"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.891414"], ["updated_at", "2019-11-22 00:32:00.891414"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 257], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$q/cXA9qSHVFKFjJPyiK7M.bJKx7zesgCBKlpV38gxZiXDA8aPKY.a"], ["created_at", "2019-11-22 00:32:00.922595"], ["updated_at", "2019-11-22 00:32:00.922595"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:00.949652"], ["last_sign_in_at", "2019-11-22 00:32:00.949652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.950265"], ["id", 258]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 258], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.2ms) Rendered users/registrations/new.html.erb within layouts/application (17.3ms)
Completed 200 OK in 110ms (Views: 109.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$q2tUFHqNaEJTQXljXa/s7Oz/Sl9vPIceiWQAmy23B4CFrPWxW6TH6"], ["created_at", "2019-11-22 00:32:01.133574"], ["updated_at", "2019-11-22 00:32:01.133574"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:32:01.135639"], ["last_sign_in_at", "2019-11-22 00:32:01.135639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:32:01.136085"], ["id", 259]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 88ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 259], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$.CEFsukZq3ky9.h1RO.kcuCGs.h9..ejtXnZYOAt5Krk/d4.CwpEu"], ["created_at", "2019-11-22 00:32:01.236756"], ["updated_at", "2019-11-22 00:32:01.236756"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:32:01.262976"], ["last_sign_in_at", "2019-11-22 00:32:01.262976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:01.263854"], ["id", 260]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 260], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/260/edit” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"260"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 260], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.4ms) Started PUT “/users/260” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"260"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 260], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 260], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 260], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:32:01.326400"], ["id", 260]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 152ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 260], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]] [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (4.4ms)
Completed 200 OK in 317ms (Views: 298.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$OJmk/UTOTVue8ZMuG1B7lu3WUyL0vDlee17j9YhN/4qoLPwwVzUsO"], ["created_at", "2019-11-22 00:36:49.161242"], ["updated_at", "2019-11-22 00:36:49.161242"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (57.3ms) Rendered users/sessions/new.html.erb within layouts/application (73.6ms)
Completed 200 OK in 220ms (Views: 217.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:49.446598"], ["last_sign_in_at", "2019-11-22 00:36:49.446598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:49.447381"], ["id", 261]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 164ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 261], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 53ms (Views: 34.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$S1KWVSWNRIcGDa/TuJq7Re7KFXeZEbBhkhcIvDj38ckGlEFWfy.6e"], ["created_at", "2019-11-22 00:36:49.677284"], ["updated_at", "2019-11-22 00:36:49.677284"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$6d0E8mwjcTavx36FF7xibeDAqOAbdfdg/WZFaTo6niw6CENl04u2."], ["created_at", "2019-11-22 00:36:49.782316"], ["updated_at", "2019-11-22 00:36:49.782316"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.7ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:49.799828"], ["last_sign_in_at", "2019-11-22 00:36:49.799828"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:49.800424"], ["id", 263]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 263], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (1.5ms)
Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:49.851025"], ["updated_at", "2019-11-22 00:36:49.851025"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 216], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 263], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 263], ["room_id", 216], ["created_at", "2019-11-22 00:36:49.912695"], ["updated_at", "2019-11-22 00:36:49.912695"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 263], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 263]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 74ms (Views: 40.8ms | ActiveRecord: 1.0ms) Started DELETE “/appointments/99” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"99"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 99], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 99]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 263], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$CtGyxZSpAQo7qStUVLxPt.aMKOkQDoyxP9LuJhNwY5UdIiK8938R."], ["created_at", "2019-11-22 00:36:50.025275"], ["updated_at", "2019-11-22 00:36:50.025275"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.049759"], ["last_sign_in_at", "2019-11-22 00:36:50.049759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.050297"], ["id", 264]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 264], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:36:50.060218"], ["updated_at", "2019-11-22 00:36:50.060218"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 217], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 264], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 264], ["room_id", 217], ["created_at", "2019-11-22 00:36:50.065180"], ["updated_at", "2019-11-22 00:36:50.065180"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 264], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 264]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/100” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"100"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 100], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 100]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 264], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$.wHSEOs3rVYks77/F09yF.dVArgIRxjsl4zHoI1yD.iF9VaH.avzm"], ["created_at", "2019-11-22 00:36:50.098522"], ["updated_at", "2019-11-22 00:36:50.098522"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.113039"], ["last_sign_in_at", "2019-11-22 00:36:50.113039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.113697"], ["id", 265]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 265], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.131084"], ["updated_at", "2019-11-22 00:36:50.131084"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 218], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 265], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 265], ["room_id", 218], ["created_at", "2019-11-22 00:36:50.138718"], ["updated_at", "2019-11-22 00:36:50.138718"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 265], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 265]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$il8X0cYWPrJFH1sZUyZXnejQ0WRhmR2urZx8AUiDlBWdCa/OGTbMa"], ["created_at", "2019-11-22 00:36:50.160223"], ["updated_at", "2019-11-22 00:36:50.160223"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.174752"], ["last_sign_in_at", "2019-11-22 00:36:50.174752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.175368"], ["id", 266]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 266], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:36:50.184719"], ["updated_at", "2019-11-22 00:36:50.184719"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 219], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 266], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 266], ["room_id", 219], ["created_at", "2019-11-22 00:36:50.191027"], ["updated_at", "2019-11-22 00:36:50.191027"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 266], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 266]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kA0qX7d8cCnkYf89qo83O.uhl4COQqmecRq2Xt9VPQ3eDkdmOflwW"], ["created_at", "2019-11-22 00:36:50.214358"], ["updated_at", "2019-11-22 00:36:50.214358"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.229985"], ["last_sign_in_at", "2019-11-22 00:36:50.229985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.230698"], ["id", 267]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 267], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.243338"], ["updated_at", "2019-11-22 00:36:50.243338"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.245544"], ["updated_at", "2019-11-22 00:36:50.245544"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 267], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 61ms (Views: 42.5ms | ActiveRecord: 0.8ms) Started GET “/appointments/220” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"220"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 220], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '220')[0m
Rendered appointments/show.html.erb within layouts/application (10.9ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 267], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 37ms (Views: 17.7ms | ActiveRecord: 1.1ms) Started POST “/appointments.220” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 267], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 220], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 267], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 267], ["room_id", 220], ["created_at", "2019-11-22 00:36:50.377262"], ["updated_at", "2019-11-22 00:36:50.377262"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 267], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$r.0jZlbO0bz8lsGPDpLxWODicn1FXjj8RpaQ1CWKBOJlJEGR6XYNu"], ["created_at", "2019-11-22 00:36:50.394284"], ["updated_at", "2019-11-22 00:36:50.394284"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.409709"], ["last_sign_in_at", "2019-11-22 00:36:50.409709"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.410349"], ["id", 268]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 268], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.422081"], ["updated_at", "2019-11-22 00:36:50.422081"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.423721"], ["updated_at", "2019-11-22 00:36:50.423721"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 268], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/222” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"222"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 222], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '222')[0m
Rendered appointments/show.html.erb within layouts/application (1.3ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 268], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.9ms) Started POST “/appointments.222” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 268], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 268], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Lp1UoXToo3PhbmHzh1xCo.AfL3kMIIxBcS2SWGkjsv1NnnMkC9R52"], ["created_at", "2019-11-22 00:36:50.475589"], ["updated_at", "2019-11-22 00:36:50.475589"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.489561"], ["last_sign_in_at", "2019-11-22 00:36:50.489561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.490227"], ["id", 269]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 269], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:36:50.500467"], ["updated_at", "2019-11-22 00:36:50.500467"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 269], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 269], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/224” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"224"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 269], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 224], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 224]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 269], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$SjsQmZGcbn2pjj2KRsJerecekprGZhkkhNbAEM4fIe3KBFflgqCFm"], ["created_at", "2019-11-22 00:36:50.544878"], ["updated_at", "2019-11-22 00:36:50.544878"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:36:50.547136"], ["updated_at", "2019-11-22 00:36:50.547136"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.572539"], ["last_sign_in_at", "2019-11-22 00:36:50.572539"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.573283"], ["id", 270]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 270], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 270], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.9ms) Started GET “/rooms/225/edit” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"225"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 270], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 225], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 25ms (Views: 6.7ms | ActiveRecord: 0.8ms) Started PATCH “/rooms/225” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"225"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 270], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 225], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:36:50.648741"], ["id", 225]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/225 Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/rooms/225” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"225"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 270], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 225], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 2.5ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$dy/lsu80uNZ0R8QnEQtQ0.PG4Lxz3Ia38rxtrrYZy5TzH5oBSomOC"], ["created_at", "2019-11-22 00:36:50.689471"], ["updated_at", "2019-11-22 00:36:50.689471"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.702249"], ["last_sign_in_at", "2019-11-22 00:36:50.702249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.702823"], ["id", 271]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 271], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.714404"], ["updated_at", "2019-11-22 00:36:50.714404"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.716277"], ["updated_at", "2019-11-22 00:36:50.716277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 271], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5BwOqxtKusp1HG22tHPCdOxOPbfhv/0q50u7DLnP8xaQiHQm0YWhu"], ["created_at", "2019-11-22 00:36:50.743947"], ["updated_at", "2019-11-22 00:36:50.743947"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.756882"], ["last_sign_in_at", "2019-11-22 00:36:50.756882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.757465"], ["id", 272]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 272], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.768996"], ["updated_at", "2019-11-22 00:36:50.768996"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.770886"], ["updated_at", "2019-11-22 00:36:50.770886"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 272], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$uLob8VwBqYP1f5lj7HrhvemHzivDVUSIUpjvufagyz2drWGzddm5G"], ["created_at", "2019-11-22 00:36:50.801432"], ["updated_at", "2019-11-22 00:36:50.801432"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:50.827563"], ["last_sign_in_at", "2019-11-22 00:36:50.827563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.828101"], ["id", 273]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 273], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (5.5ms) Rendered users/registrations/new.html.erb within layouts/application (23.9ms)
Completed 200 OK in 124ms (Views: 123.7ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$6kqstr7pzW3UDEnyV01eOOUz60kDvF8aqZSzKl0xBPy70dJAkIaIi"], ["created_at", "2019-11-22 00:36:51.021639"], ["updated_at", "2019-11-22 00:36:51.021639"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:36:51.024102"], ["last_sign_in_at", "2019-11-22 00:36:51.024102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:36:51.024741"], ["id", 274]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 91ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 274], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$TdCmtMNV8o7VVlvs7gZI0.qWhTjGN.K5QZLE6FQBuPJGkiud5H33u"], ["created_at", "2019-11-22 00:36:51.124821"], ["updated_at", "2019-11-22 00:36:51.124821"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:36:51.151148"], ["last_sign_in_at", "2019-11-22 00:36:51.151148"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:51.151748"], ["id", 275]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 275], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/users/275/edit” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"275"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 275], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.5ms) Started PUT “/users/275” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"275"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 275], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 275], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 275], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:36:51.217105"], ["id", 275]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 166ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 275], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]] [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:02 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (4.2ms)
Completed 200 OK in 317ms (Views: 298.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$o6.SUbzCFpYA/J29PtuyAOTLfNpqLD/feDD6R3P4QC0Ns5jsJp4/K"], ["created_at", "2019-11-22 00:39:03.241650"], ["updated_at", "2019-11-22 00:39:03.241650"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (44.0ms) Rendered users/sessions/new.html.erb within layouts/application (60.1ms)
Completed 200 OK in 215ms (Views: 212.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:03.520370"], ["last_sign_in_at", "2019-11-22 00:39:03.520370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:03.521110"], ["id", 276]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 159ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 276], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.1ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 52ms (Views: 33.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KIrL83HCrPDssxQAE0o8QOObSJY8f68bYBg1vb9EhHaFzAGZUeRVO"], ["created_at", "2019-11-22 00:39:03.745514"], ["updated_at", "2019-11-22 00:39:03.745514"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ckZmETIbkmq1QFkPhkoaEOlWabV4pWzRvpyilovaAtunoY0hN4Tly"], ["created_at", "2019-11-22 00:39:03.853098"], ["updated_at", "2019-11-22 00:39:03.853098"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:03.869411"], ["last_sign_in_at", "2019-11-22 00:39:03.869411"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:03.870001"], ["id", 278]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 278], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.5ms) Rendered layouts/_header-user.html.erb (1.7ms)
Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:03.918908"], ["updated_at", "2019-11-22 00:39:03.918908"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 230], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 278], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 278], ["room_id", 230], ["created_at", "2019-11-22 00:39:03.978207"], ["updated_at", "2019-11-22 00:39:03.978207"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 278], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 278]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 72ms (Views: 40.2ms | ActiveRecord: 1.0ms) Started DELETE “/appointments/104” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"104"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 104], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 104]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 278], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$NldfsXBndu/BPdhj5QoukuILEVKPqI/SM/UUOPUPRuLPuWvw/jY5i"], ["created_at", "2019-11-22 00:39:04.089421"], ["updated_at", "2019-11-22 00:39:04.089421"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.117876"], ["last_sign_in_at", "2019-11-22 00:39:04.117876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.118530"], ["id", 279]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 279], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:39:04.128242"], ["updated_at", "2019-11-22 00:39:04.128242"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 231], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 279], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 279], ["room_id", 231], ["created_at", "2019-11-22 00:39:04.133191"], ["updated_at", "2019-11-22 00:39:04.133191"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 279], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 279]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/105” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"105"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 105], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 105]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 279], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$LHqdTw.dux/RVlwzWC.r1OD8b8k6pFK1GbDtPIlN8Lq85B2BBYvTe"], ["created_at", "2019-11-22 00:39:04.164963"], ["updated_at", "2019-11-22 00:39:04.164963"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.178627"], ["last_sign_in_at", "2019-11-22 00:39:04.178627"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.179250"], ["id", 280]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 280], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.196060"], ["updated_at", "2019-11-22 00:39:04.196060"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 232], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 280], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 280], ["room_id", 232], ["created_at", "2019-11-22 00:39:04.203050"], ["updated_at", "2019-11-22 00:39:04.203050"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 280], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 280]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$TpE8mDwFfkhZSjNcEyPIOe01Z4RjZ4xo0rUvhoQm7y4IHNgD8jUmm"], ["created_at", "2019-11-22 00:39:04.224157"], ["updated_at", "2019-11-22 00:39:04.224157"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.237112"], ["last_sign_in_at", "2019-11-22 00:39:04.237112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.237663"], ["id", 281]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 281], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:39:04.247287"], ["updated_at", "2019-11-22 00:39:04.247287"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 233], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 281], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 281], ["room_id", 233], ["created_at", "2019-11-22 00:39:04.252517"], ["updated_at", "2019-11-22 00:39:04.252517"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 281], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 281]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$FlJRhh47.CM6pKT8qiBg3ug1p3z6.jVFYPtedDjFiCk.7btOj6kUa"], ["created_at", "2019-11-22 00:39:04.276770"], ["updated_at", "2019-11-22 00:39:04.276770"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.289808"], ["last_sign_in_at", "2019-11-22 00:39:04.289808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.290594"], ["id", 282]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 282], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.303530"], ["updated_at", "2019-11-22 00:39:04.303530"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.305417"], ["updated_at", "2019-11-22 00:39:04.305417"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 282], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 44.0ms | ActiveRecord: 0.9ms) Started GET “/appointments/234” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"234"}
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 234], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '234')[0m
Rendered appointments/show.html.erb within layouts/application (10.2ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 282], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 33ms (Views: 12.6ms | ActiveRecord: 1.6ms) Started POST “/appointments.234” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 282], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 234], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 282], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 282], ["room_id", 234], ["created_at", "2019-11-22 00:39:04.441909"], ["updated_at", "2019-11-22 00:39:04.441909"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 282], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$pYvAjxYKL7ozMRrlcStYM.G5dIl/b1iBOriGDI/Ar53EOJ2V/70gK"], ["created_at", "2019-11-22 00:39:04.459909"], ["updated_at", "2019-11-22 00:39:04.459909"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.473776"], ["last_sign_in_at", "2019-11-22 00:39:04.473776"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.474646"], ["id", 283]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 283], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.6ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.487285"], ["updated_at", "2019-11-22 00:39:04.487285"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.489056"], ["updated_at", "2019-11-22 00:39:04.489056"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 283], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/236” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"236"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 236], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '236')[0m
Rendered appointments/show.html.erb within layouts/application (1.3ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 283], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 1.1ms) Started POST “/appointments.236” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 283], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 283], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$gKHjVPK1UiWBYpIM3/Rg2ORk8/uulUekWOXyf8jPJSUVN46BH2Lpy"], ["created_at", "2019-11-22 00:39:04.541544"], ["updated_at", "2019-11-22 00:39:04.541544"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.554816"], ["last_sign_in_at", "2019-11-22 00:39:04.554816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.555404"], ["id", 284]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 284], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:39:04.566242"], ["updated_at", "2019-11-22 00:39:04.566242"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 284], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 284], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/238” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"238"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 284], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 238], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 238]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 284], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$uHUH0Dprynhfy/m6vFBhKe8.bGnioe9ZvKQDjK8ccDQGR5yA0LF1e"], ["created_at", "2019-11-22 00:39:04.609802"], ["updated_at", "2019-11-22 00:39:04.609802"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:39:04.611643"], ["updated_at", "2019-11-22 00:39:04.611643"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.638493"], ["last_sign_in_at", "2019-11-22 00:39:04.638493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.639060"], ["id", 285]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 285], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 285], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/rooms/239/edit” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"239"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 285], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 239], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 24ms (Views: 6.0ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/239” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"239"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 285], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 239], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:39:04.708801"], ["id", 239]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/239 Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/rooms/239” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"239"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 285], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 239], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$DbruXJt9J5Te0V4kxR/lKuWLd5tdIGlnyD0nyZtOz4vDDjQY7E47q"], ["created_at", "2019-11-22 00:39:04.746592"], ["updated_at", "2019-11-22 00:39:04.746592"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.759828"], ["last_sign_in_at", "2019-11-22 00:39:04.759828"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.760383"], ["id", 286]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 286], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.772153"], ["updated_at", "2019-11-22 00:39:04.772153"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.774090"], ["updated_at", "2019-11-22 00:39:04.774090"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 286], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ipCJrawDLFX4Yfqk5ZiwjuAK/DeY1n8qqCux2sDHVRqJsvk.kqcXe"], ["created_at", "2019-11-22 00:39:04.803836"], ["updated_at", "2019-11-22 00:39:04.803836"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.817542"], ["last_sign_in_at", "2019-11-22 00:39:04.817542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.818093"], ["id", 287]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 287], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.830143"], ["updated_at", "2019-11-22 00:39:04.830143"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.832340"], ["updated_at", "2019-11-22 00:39:04.832340"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 287], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$RZdPXDJiu6G5mdZPAEj74OMLZASpZjZ1wjXarTw3hWSXGZvwwFN2C"], ["created_at", "2019-11-22 00:39:04.864658"], ["updated_at", "2019-11-22 00:39:04.864658"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:04.892730"], ["last_sign_in_at", "2019-11-22 00:39:04.892730"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.893365"], ["id", 288]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 288], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (17.3ms)
Completed 200 OK in 107ms (Views: 106.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$8z39r6hzWBQRKiw6onAdkOqQb9jikY2ZwY0eN4Imu0lK9eXfqQUJ6"], ["created_at", "2019-11-22 00:39:05.078282"], ["updated_at", "2019-11-22 00:39:05.078282"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:39:05.080139"], ["last_sign_in_at", "2019-11-22 00:39:05.080139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:39:05.080682"], ["id", 289]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 289], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$eawZjYtdKaLTeX6mlJZQO.LNtTEH3VFU2n4lC9ZlYbVPG5hEvzKQ."], ["created_at", "2019-11-22 00:39:05.179090"], ["updated_at", "2019-11-22 00:39:05.179090"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:39:05.205082"], ["last_sign_in_at", "2019-11-22 00:39:05.205082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:05.205684"], ["id", 290]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 290], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/290/edit” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"290"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 290], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.5ms) Started PUT “/users/290” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"290"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 290], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 290], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 290], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:39:05.268177"], ["id", 290]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 152ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 290], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$oIjA8OvZJ4.rr9JiSo1l5e54Oro5ibE0Z1QlzzUMCR7Ts..A.xs3u"], ["created_at", "2019-11-22 00:41:27.318128"], ["updated_at", "2019-11-22 00:41:27.318128"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (43.9ms) Rendered users/sessions/new.html.erb within layouts/application (328.0ms)
Completed 200 OK in 484ms (Views: 477.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:27.885299"], ["last_sign_in_at", "2019-11-22 00:41:27.885299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:27.886122"], ["id", 291]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 159ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 291], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 53ms (Views: 34.3ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 291], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (14.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.6ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 291], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 70ms (Views: 42.1ms | ActiveRecord: 3.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$7e4XAU9QkuAGhPWIApTaPOAHsk.xxFWMqj.1Cf18eD5Rt08IeTPSy"], ["created_at", "2019-11-22 00:41:28.203555"], ["updated_at", "2019-11-22 00:41:28.203555"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.2ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:28.219598"], ["last_sign_in_at", "2019-11-22 00:41:28.219598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.220150"], ["id", 292]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 292], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 292], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 292], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.8ms)
Completed 200 OK in 33ms (Views: 17.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$zau1hJSb9l27vbiN32xgsOOm8vAK3lA7tQ9Swir0i7ZNrgbG.D8Xi"], ["created_at", "2019-11-22 00:41:28.305683"], ["updated_at", "2019-11-22 00:41:28.305683"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:28.330779"], ["last_sign_in_at", "2019-11-22 00:41:28.330779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.331403"], ["id", 293]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 293], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$6.JKhDiDX6LnX6bODEuaXeFqWxK5F49nqGzsbt4Uq6QknW9.M.8eK"], ["created_at", "2019-11-22 00:41:28.365278"], ["updated_at", "2019-11-22 00:41:28.365278"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lAqCDwEFFdF9B0GUIkE8veXl4Kh2vIuy4YvBEsPgmlnt5i3aPf9gK"], ["created_at", "2019-11-22 00:41:28.415611"], ["updated_at", "2019-11-22 00:41:28.415611"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.5ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:28.434083"], ["last_sign_in_at", "2019-11-22 00:41:28.434083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.434743"], ["id", 295]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 295], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.447019"], ["updated_at", "2019-11-22 00:41:28.447019"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.449478"], ["updated_at", "2019-11-22 00:41:28.449478"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 245], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 295], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 295], ["room_id", 245], ["created_at", "2019-11-22 00:41:28.513039"], ["updated_at", "2019-11-22 00:41:28.513039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 295], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 245], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 295], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 60ms (Views: 42.8ms | ActiveRecord: 1.6ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 295], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qdg9FzMXdmSCU4Qtxd7SlOk.k6MNHQjn7eVj9vBvdtR2irt1zROba"], ["created_at", "2019-11-22 00:41:28.773971"], ["updated_at", "2019-11-22 00:41:28.773971"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:28.789197"], ["last_sign_in_at", "2019-11-22 00:41:28.789197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.789851"], ["id", 296]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 296], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.799164"], ["updated_at", "2019-11-22 00:41:28.799164"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.801253"], ["updated_at", "2019-11-22 00:41:28.801253"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 247], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 296], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 296], ["room_id", 247], ["created_at", "2019-11-22 00:41:28.806379"], ["updated_at", "2019-11-22 00:41:28.806379"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 296], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 247], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 296], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 296], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aAhyxz0v5dqjUssy9B2JUO.ie5pWMwmTpzZgtH7xHaSCLhF9oCPeW"], ["created_at", "2019-11-22 00:41:28.834638"], ["updated_at", "2019-11-22 00:41:28.834638"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:28.848569"], ["last_sign_in_at", "2019-11-22 00:41:28.848569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.849184"], ["id", 297]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 297], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.857650"], ["updated_at", "2019-11-22 00:41:28.857650"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.859524"], ["updated_at", "2019-11-22 00:41:28.859524"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 249], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 297], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 297], ["room_id", 249], ["created_at", "2019-11-22 00:41:28.864902"], ["updated_at", "2019-11-22 00:41:28.864902"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 297], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 249], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.3ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 297], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 297], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KT/MF.iEvPuFmra55TLMhuVEfui0qYxJTD6rzWS2Nxuuh777qdCN6"], ["created_at", "2019-11-22 00:41:28.905044"], ["updated_at", "2019-11-22 00:41:28.905044"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:28.920202"], ["last_sign_in_at", "2019-11-22 00:41:28.920202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.920772"], ["id", 298]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 298], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.929929"], ["updated_at", "2019-11-22 00:41:28.929929"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.931835"], ["updated_at", "2019-11-22 00:41:28.931835"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 251], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 298], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 298], ["room_id", 251], ["created_at", "2019-11-22 00:41:28.937996"], ["updated_at", "2019-11-22 00:41:28.937996"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 298], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 251], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 298], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 298], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$QdiDZ.ObMNsvHyBmvvzoceOfPUvdiE6tDor9c2SpQIDrFyFG/IDgi"], ["created_at", "2019-11-22 00:41:28.979510"], ["updated_at", "2019-11-22 00:41:28.979510"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (6.6ms)
Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:28.999815"], ["last_sign_in_at", "2019-11-22 00:41:28.999815"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.000540"], ["id", 299]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 299], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.036788"], ["updated_at", "2019-11-22 00:41:29.036788"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 252], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 299], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 299], ["room_id", 252], ["created_at", "2019-11-22 00:41:29.043249"], ["updated_at", "2019-11-22 00:41:29.043249"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 299], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 299]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 39ms (Views: 4.6ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/113” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"113"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 113], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 113]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 299], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$y2XQlKHrCNak3lE5KJ7dF.hQVAuRsPQsVXOrGpVw3rLwHt.uw8ali"], ["created_at", "2019-11-22 00:41:29.110380"], ["updated_at", "2019-11-22 00:41:29.110380"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.124534"], ["last_sign_in_at", "2019-11-22 00:41:29.124534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.125062"], ["id", 300]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 300], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:29.134311"], ["updated_at", "2019-11-22 00:41:29.134311"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 253], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 300], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 300], ["room_id", 253], ["created_at", "2019-11-22 00:41:29.139179"], ["updated_at", "2019-11-22 00:41:29.139179"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 300], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 300]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/114” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"114"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 114], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 114]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 300], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$Izmw7NMrEEYL6.gz2epSneNcU2wqQruzj2aBaf4arczxr6NXeD9zm"], ["created_at", "2019-11-22 00:41:29.170230"], ["updated_at", "2019-11-22 00:41:29.170230"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.185013"], ["last_sign_in_at", "2019-11-22 00:41:29.185013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.185617"], ["id", 301]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 301], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.202956"], ["updated_at", "2019-11-22 00:41:29.202956"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 254], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 301], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 301], ["room_id", 254], ["created_at", "2019-11-22 00:41:29.209248"], ["updated_at", "2019-11-22 00:41:29.209248"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 301], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 301]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$mZjRVZ4K47.V65h9ZTE2De6KXXWcBALxtKWCn.YNc3KfnYU/KzvPO"], ["created_at", "2019-11-22 00:41:29.229366"], ["updated_at", "2019-11-22 00:41:29.229366"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.242627"], ["last_sign_in_at", "2019-11-22 00:41:29.242627"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.243188"], ["id", 302]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 302], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:29.253477"], ["updated_at", "2019-11-22 00:41:29.253477"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 255], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 302], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 302], ["room_id", 255], ["created_at", "2019-11-22 00:41:29.258903"], ["updated_at", "2019-11-22 00:41:29.258903"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 302], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 302]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3dqxdo8bX7JwEWoUuMzQuuMwFxLLGpTtfxi8T6h13mgAI1QEReYhK"], ["created_at", "2019-11-22 00:41:29.286860"], ["updated_at", "2019-11-22 00:41:29.286860"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.299997"], ["last_sign_in_at", "2019-11-22 00:41:29.299997"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.300592"], ["id", 303]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 303], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.313067"], ["updated_at", "2019-11-22 00:41:29.313067"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.314813"], ["updated_at", "2019-11-22 00:41:29.314813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 303], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started GET “/appointments/256” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"256"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 256], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '256')[0m
Rendered appointments/show.html.erb within layouts/application (9.9ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 303], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 30ms (Views: 11.9ms | ActiveRecord: 1.2ms) Started POST “/appointments.256” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 303], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 256], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 303], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 303], ["room_id", 256], ["created_at", "2019-11-22 00:41:29.398012"], ["updated_at", "2019-11-22 00:41:29.398012"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 303], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$k./7V3bxWMkoNYa97rU7Z.xrimzqOYSrl99hjckMXgUy/7O/ifrtW"], ["created_at", "2019-11-22 00:41:29.416024"], ["updated_at", "2019-11-22 00:41:29.416024"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.429717"], ["last_sign_in_at", "2019-11-22 00:41:29.429717"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.430361"], ["id", 304]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 304], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.442791"], ["updated_at", "2019-11-22 00:41:29.442791"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.444977"], ["updated_at", "2019-11-22 00:41:29.444977"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 304], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms) Started GET “/appointments/258” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"258"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 258], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '258')[0m
Rendered appointments/show.html.erb within layouts/application (1.3ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 304], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.9ms) Started POST “/appointments.258” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 304], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 304], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$g9P4UIDzeHx1RNWJNiK.IOMtAYSpP4.bn5jKzzuO/R2EqvOrKpKe."], ["created_at", "2019-11-22 00:41:29.502024"], ["updated_at", "2019-11-22 00:41:29.502024"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.515566"], ["last_sign_in_at", "2019-11-22 00:41:29.515566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.516137"], ["id", 305]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 305], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:41:29.526901"], ["updated_at", "2019-11-22 00:41:29.526901"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 305], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 305], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/260” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"260"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 305], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 260], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 260]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 305], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$BXz8ocBXAWTa23k2WSmNCeNbmU.qFA/t5BZ6QnRyfFnVrwxV.B4Vu"], ["created_at", "2019-11-22 00:41:29.575462"], ["updated_at", "2019-11-22 00:41:29.575462"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:41:29.578105"], ["updated_at", "2019-11-22 00:41:29.578105"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.604059"], ["last_sign_in_at", "2019-11-22 00:41:29.604059"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.604726"], ["id", 306]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 306], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 306], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms) Started GET “/rooms/261/edit” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"261"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 306], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 261], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.9ms) Started PATCH “/rooms/261” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"261"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 306], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 261], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:41:29.666892"], ["id", 261]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/261 Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/rooms/261” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"261"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 306], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 261], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$RMfJG0nKpD9rBsNDPNUfF.XfyMzzwBlzgeHm0k9AkQdsbb27EV3Wi"], ["created_at", "2019-11-22 00:41:29.706866"], ["updated_at", "2019-11-22 00:41:29.706866"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.720937"], ["last_sign_in_at", "2019-11-22 00:41:29.720937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.721525"], ["id", 307]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 307], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.733671"], ["updated_at", "2019-11-22 00:41:29.733671"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.735587"], ["updated_at", "2019-11-22 00:41:29.735587"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 307], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$w0DYISTVY5VV51e6c5yf.uzNoxshMYkWefdCTfSUpmVRA9Q9tIPr."], ["created_at", "2019-11-22 00:41:29.764445"], ["updated_at", "2019-11-22 00:41:29.764445"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.777789"], ["last_sign_in_at", "2019-11-22 00:41:29.777789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.778491"], ["id", 308]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 308], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.790345"], ["updated_at", "2019-11-22 00:41:29.790345"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.792399"], ["updated_at", "2019-11-22 00:41:29.792399"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 308], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$IZzSuPFhySQmXDQYseBJBuip..SsAWO/MEvJAH0o3FU0/DhVtBemO"], ["created_at", "2019-11-22 00:41:29.829748"], ["updated_at", "2019-11-22 00:41:29.829748"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:29.855418"], ["last_sign_in_at", "2019-11-22 00:41:29.855418"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.855965"], ["id", 309]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 309], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (17.5ms)
Completed 200 OK in 108ms (Views: 107.0ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$TDe6VfaqZwJT3TSy4O4r7OUd31AHCknCC890aKmhvkJv8NVjzneWC"], ["created_at", "2019-11-22 00:41:30.032296"], ["updated_at", "2019-11-22 00:41:30.032296"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:41:30.034199"], ["last_sign_in_at", "2019-11-22 00:41:30.034199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:41:30.034676"], ["id", 310]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 310], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$bZ5C7XQaHk0j1i.FC5HKz.8fX6bJrlkk/pQ/uQoklc9x7KdjSY.J6"], ["created_at", "2019-11-22 00:41:30.131621"], ["updated_at", "2019-11-22 00:41:30.131621"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:41:30.157500"], ["last_sign_in_at", "2019-11-22 00:41:30.157500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:30.158330"], ["id", 311]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 311], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/311/edit” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"311"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 311], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.4ms) Started PUT “/users/311” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"311"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 311], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 311], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 311], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:41:30.220839"], ["id", 311]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 169ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 311], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$hgk5CQSGESz7H/sL9BHB4uxcDyXYyJrThYmLja/ffxioZSeK6OZTK"], ["created_at", "2019-11-22 00:49:30.929350"], ["updated_at", "2019-11-22 00:49:30.929350"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (46.2ms) Rendered users/sessions/new.html.erb within layouts/application (339.9ms)
Completed 200 OK in 495ms (Views: 488.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:31.510086"], ["last_sign_in_at", "2019-11-22 00:49:31.510086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:31.510802"], ["id", 312]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 160ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 312], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 52ms (Views: 33.9ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 312], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 312], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 70ms (Views: 42.5ms | ActiveRecord: 3.8ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KiRApry7vbFe2RZ39DlQIefw3RbQG/CdvzeV2yfkGmI7Q5IvhwUaK"], ["created_at", "2019-11-22 00:49:31.831389"], ["updated_at", "2019-11-22 00:49:31.831389"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:31.847019"], ["last_sign_in_at", "2019-11-22 00:49:31.847019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:31.847669"], ["id", 313]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 313], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 313], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 313], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.7ms)
Completed 200 OK in 33ms (Views: 17.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Ur3MmeI0i.6tEztgCKRZBu.JeNgBJKeJUD6k76DAIeHrEM4Ni.pHW"], ["created_at", "2019-11-22 00:49:31.931114"], ["updated_at", "2019-11-22 00:49:31.931114"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:31.956409"], ["last_sign_in_at", "2019-11-22 00:49:31.956409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:31.957162"], ["id", 314]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 314], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms) Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eX5JjrXt9zANnWxz5TVCpOGRLUbBCtrRL4V6roim2nol1esngpBL2"], ["created_at", "2019-11-22 00:49:31.989677"], ["updated_at", "2019-11-22 00:49:31.989677"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$tL5Fr0/v7XAsZclq3CcAw.ZHXmCdjAMwDG5/hmtDeR3WOkFYThHCC"], ["created_at", "2019-11-22 00:49:32.039656"], ["updated_at", "2019-11-22 00:49:32.039656"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.057734"], ["last_sign_in_at", "2019-11-22 00:49:32.057734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.058263"], ["id", 316]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 316], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.070110"], ["updated_at", "2019-11-22 00:49:32.070110"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.072841"], ["updated_at", "2019-11-22 00:49:32.072841"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 267], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 316], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 316], ["room_id", 267], ["created_at", "2019-11-22 00:49:32.135418"], ["updated_at", "2019-11-22 00:49:32.135418"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 316], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 267], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.8ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 316], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 69ms (Views: 51.7ms | ActiveRecord: 1.6ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 316], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$onN03OvxssXZ0FTwP/rABO1/3KCq1rXnx1fwzW.q/8Y65qPnmIu5a"], ["created_at", "2019-11-22 00:49:32.263124"], ["updated_at", "2019-11-22 00:49:32.263124"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.277038"], ["last_sign_in_at", "2019-11-22 00:49:32.277038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.277608"], ["id", 317]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 317], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.286113"], ["updated_at", "2019-11-22 00:49:32.286113"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.287861"], ["updated_at", "2019-11-22 00:49:32.287861"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 269], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 317], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 317], ["room_id", 269], ["created_at", "2019-11-22 00:49:32.292842"], ["updated_at", "2019-11-22 00:49:32.292842"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 317], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 269], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 317], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 317], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$CdWZjMXhu/.UhqyMld2S8OFCDGhSpDVFJAYhj36KKR7jYndn8vQre"], ["created_at", "2019-11-22 00:49:32.319212"], ["updated_at", "2019-11-22 00:49:32.319212"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.332912"], ["last_sign_in_at", "2019-11-22 00:49:32.332912"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.333483"], ["id", 318]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 318], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.342246"], ["updated_at", "2019-11-22 00:49:32.342246"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.344130"], ["updated_at", "2019-11-22 00:49:32.344130"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 271], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 318], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 318], ["room_id", 271], ["created_at", "2019-11-22 00:49:32.348834"], ["updated_at", "2019-11-22 00:49:32.348834"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 318], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 271], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 318], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 318], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Qx8zloUcHiB6u3qh0LxZkucriMVeaNsf6goT4uD0aomW0I8bJMSPe"], ["created_at", "2019-11-22 00:49:32.385524"], ["updated_at", "2019-11-22 00:49:32.385524"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.399143"], ["last_sign_in_at", "2019-11-22 00:49:32.399143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.399666"], ["id", 319]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 319], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.408638"], ["updated_at", "2019-11-22 00:49:32.408638"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.410389"], ["updated_at", "2019-11-22 00:49:32.410389"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 273], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 319], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 319], ["room_id", 273], ["created_at", "2019-11-22 00:49:32.415154"], ["updated_at", "2019-11-22 00:49:32.415154"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 319], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 273], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 319], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 319], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$GHLFRSD32z8Q/gjClcWLquNt18Fk8.L.FtycMUEDQ3kftNzakKifS"], ["created_at", "2019-11-22 00:49:32.447064"], ["updated_at", "2019-11-22 00:49:32.447064"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.464388"], ["last_sign_in_at", "2019-11-22 00:49:32.464388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.464976"], ["id", 320]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 320], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.503839"], ["updated_at", "2019-11-22 00:49:32.503839"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 274], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 320], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 320], ["room_id", 274], ["created_at", "2019-11-22 00:49:32.510110"], ["updated_at", "2019-11-22 00:49:32.510110"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 320], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 320]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 43ms (Views: 4.9ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/122” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"122"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 122], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 122]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 320], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ApSb7opUPDJrKwYbtGWsoOfbWKeqVneFhgvgUvU2QyMvMpZJ8OeEi"], ["created_at", "2019-11-22 00:49:32.580325"], ["updated_at", "2019-11-22 00:49:32.580325"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.595788"], ["last_sign_in_at", "2019-11-22 00:49:32.595788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.596428"], ["id", 321]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 321], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.606229"], ["updated_at", "2019-11-22 00:49:32.606229"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 275], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 321], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 321], ["room_id", 275], ["created_at", "2019-11-22 00:49:32.612082"], ["updated_at", "2019-11-22 00:49:32.612082"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 321], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 321]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/123” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"123"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 123], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 123]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 321], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$n1JWBcaCeSXy97vjR/a7C.OZdqI9GEX0acwe5KILY9tUy8/G4U7vu"], ["created_at", "2019-11-22 00:49:32.646239"], ["updated_at", "2019-11-22 00:49:32.646239"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.660961"], ["last_sign_in_at", "2019-11-22 00:49:32.660961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.661574"], ["id", 322]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 322], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.678191"], ["updated_at", "2019-11-22 00:49:32.678191"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 276], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 322], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 322], ["room_id", 276], ["created_at", "2019-11-22 00:49:32.684165"], ["updated_at", "2019-11-22 00:49:32.684165"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 322], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 322]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$f7xdWtNza22Cmo.7ZpKlt.tDHdSiKpv5g8dyCaICltwKcGVc85Gga"], ["created_at", "2019-11-22 00:49:32.706688"], ["updated_at", "2019-11-22 00:49:32.706688"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.720862"], ["last_sign_in_at", "2019-11-22 00:49:32.720862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.721597"], ["id", 323]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 323], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.731476"], ["updated_at", "2019-11-22 00:49:32.731476"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 277], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 323], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 323], ["room_id", 277], ["created_at", "2019-11-22 00:49:32.736893"], ["updated_at", "2019-11-22 00:49:32.736893"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 323], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 323]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$X6Jp1EhaVXBobENyiy0y6.5ewtPcvCIRAU1riaUUy6wrz9mvABpCG"], ["created_at", "2019-11-22 00:49:32.762704"], ["updated_at", "2019-11-22 00:49:32.762704"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.777787"], ["last_sign_in_at", "2019-11-22 00:49:32.777787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.778352"], ["id", 324]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 324], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:32.791879"], ["updated_at", "2019-11-22 00:49:32.791879"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.793690"], ["updated_at", "2019-11-22 00:49:32.793690"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 324], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 3.8ms | ActiveRecord: 0.9ms) Started GET “/appointments/278” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"278"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 278], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '278')[0m
Rendered appointments/show.html.erb within layouts/application (10.3ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 324], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 32ms (Views: 12.3ms | ActiveRecord: 1.2ms) Started POST “/appointments.278” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 324], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 278], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 324], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 324], ["room_id", 278], ["created_at", "2019-11-22 00:49:32.878752"], ["updated_at", "2019-11-22 00:49:32.878752"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 324], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$EoMjOFfRhGgh9/QtWwp51uJ0TNHFIvAyfCRkATHywswKf9Y7E2VS6"], ["created_at", "2019-11-22 00:49:32.896384"], ["updated_at", "2019-11-22 00:49:32.896384"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.910213"], ["last_sign_in_at", "2019-11-22 00:49:32.910213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.910857"], ["id", 325]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 325], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:32.923264"], ["updated_at", "2019-11-22 00:49:32.923264"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.925137"], ["updated_at", "2019-11-22 00:49:32.925137"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 325], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/280” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"280"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 280], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '280')[0m
Rendered appointments/show.html.erb within layouts/application (1.6ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 325], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 1.1ms) Started POST “/appointments.280” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 325], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 325], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$k9vRRh69lNvoQhlpq5x13.VQxmPREC/RWrAfSaaQbQ3GY4Yq47S7q"], ["created_at", "2019-11-22 00:49:32.983216"], ["updated_at", "2019-11-22 00:49:32.983216"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:32.996942"], ["last_sign_in_at", "2019-11-22 00:49:32.996942"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.997576"], ["id", 326]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 326], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:49:33.008997"], ["updated_at", "2019-11-22 00:49:33.008997"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 326], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 326], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (5.8ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/282” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"282"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 326], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 282], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 282]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 326], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$XsIBZs3tMNJ9Y9c9LYO6yOuQHyNskcKoE6ADErSAphLeGsIiLyNEe"], ["created_at", "2019-11-22 00:49:33.057339"], ["updated_at", "2019-11-22 00:49:33.057339"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:49:33.059505"], ["updated_at", "2019-11-22 00:49:33.059505"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:33.085662"], ["last_sign_in_at", "2019-11-22 00:49:33.085662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.086446"], ["id", 327]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 327], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 327], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms) Started GET “/rooms/283/edit” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"283"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 327], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 283], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/283” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"283"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 327], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 283], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:49:33.147078"], ["id", 283]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/283 Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/rooms/283” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"283"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 327], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 283], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$eXhJmSDVSxZT7dCmSkwb3ehOS9kRDBVM4uaue3cknCHg4IA3o/qSG"], ["created_at", "2019-11-22 00:49:33.186855"], ["updated_at", "2019-11-22 00:49:33.186855"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:33.200661"], ["last_sign_in_at", "2019-11-22 00:49:33.200661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.201254"], ["id", 328]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 328], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:33.212998"], ["updated_at", "2019-11-22 00:49:33.212998"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:33.214731"], ["updated_at", "2019-11-22 00:49:33.214731"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 328], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$i41TlZP1YzKGgsKeecOexuDjjexoFE7bAyOeR5ROyK3zawyMxr6vy"], ["created_at", "2019-11-22 00:49:33.245106"], ["updated_at", "2019-11-22 00:49:33.245106"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:33.258681"], ["last_sign_in_at", "2019-11-22 00:49:33.258681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.259297"], ["id", 329]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 329], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:33.271293"], ["updated_at", "2019-11-22 00:49:33.271293"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:33.273474"], ["updated_at", "2019-11-22 00:49:33.273474"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 329], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$Th8UEOexJ77bWrBbt.SCE.osb692y9bno.gv167t7iZRXvXCV0rF6"], ["created_at", "2019-11-22 00:49:33.308522"], ["updated_at", "2019-11-22 00:49:33.308522"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:33.334256"], ["last_sign_in_at", "2019-11-22 00:49:33.334256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.334832"], ["id", 330]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 330], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (17.4ms)
Completed 200 OK in 107ms (Views: 106.6ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$zxROLR6LpdryYpUWPlk5Ke99PSlyW8jJa6/DNm2ZlB.AL8YL2qk.G"], ["created_at", "2019-11-22 00:49:33.513078"], ["updated_at", "2019-11-22 00:49:33.513078"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:49:33.514770"], ["last_sign_in_at", "2019-11-22 00:49:33.514770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:49:33.515191"], ["id", 331]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 331], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$wb3AHcGTOy5rjfZQ5aAu8OrZLgaXEjzWR.XQvjrrzE.XUwZiGrpmy"], ["created_at", "2019-11-22 00:49:33.614551"], ["updated_at", "2019-11-22 00:49:33.614551"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:49:33.640732"], ["last_sign_in_at", "2019-11-22 00:49:33.640732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.641499"], ["id", 332]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 332], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/332/edit” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"332"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 332], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.5ms) Started PUT “/users/332” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"332"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 332], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 332], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 332], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:49:33.703751"], ["id", 332]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 152ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 332], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wNVUIGVODpcs5OwMGRYv5uXVsf.jGXt9pgpyFsfUD.xXzpK21/V3q"], ["created_at", "2019-11-22 00:55:26.433721"], ["updated_at", "2019-11-22 00:55:26.433721"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:26 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (46.3ms) Rendered users/sessions/new.html.erb within layouts/application (338.8ms)
Completed 200 OK in 495ms (Views: 487.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.012507"], ["last_sign_in_at", "2019-11-22 00:55:27.012507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.013210"], ["id", 333]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 162ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 333], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 54ms (Views: 35.1ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 333], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 333], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.8ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 73ms (Views: 43.3ms | ActiveRecord: 3.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$dMmMH1jX9MXWOOGjrPZ9V.WUGVD7im/vjAtdDJwi5FOAP96VHNAKW"], ["created_at", "2019-11-22 00:55:27.340668"], ["updated_at", "2019-11-22 00:55:27.340668"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.356422"], ["last_sign_in_at", "2019-11-22 00:55:27.356422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.356972"], ["id", 334]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 334], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 334], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 334], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.7ms)
Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$N6W4gHlZLmGW6ed1bI/bnusmAp8W0vbqWdrFXMGT7LEvSWeWQcoOq"], ["created_at", "2019-11-22 00:55:27.442857"], ["updated_at", "2019-11-22 00:55:27.442857"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.467356"], ["last_sign_in_at", "2019-11-22 00:55:27.467356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.467980"], ["id", 335]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 335], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (3.6ms)
Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.6ms)
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aqqwe8rnzeDULflZnIR1MuXBWE.pMlw53hlFB9difwAGL/fguTtNi"], ["created_at", "2019-11-22 00:55:27.500683"], ["updated_at", "2019-11-22 00:55:27.500683"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lotEX2tjaUfTfwARD2.KIurnmod3gb5bMQbe1IpR/1ScAvxdA5zMO"], ["created_at", "2019-11-22 00:55:27.550673"], ["updated_at", "2019-11-22 00:55:27.550673"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.5ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.569453"], ["last_sign_in_at", "2019-11-22 00:55:27.569453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.570128"], ["id", 337]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 337], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.582371"], ["updated_at", "2019-11-22 00:55:27.582371"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.584945"], ["updated_at", "2019-11-22 00:55:27.584945"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 289], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 337], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 337], ["room_id", 289], ["created_at", "2019-11-22 00:55:27.650942"], ["updated_at", "2019-11-22 00:55:27.650942"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 337], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 289], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (4.6ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 337], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 72ms (Views: 53.7ms | ActiveRecord: 1.7ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 337], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aufA4v44BXL.5UPcj2OOKeRPdkJrnZHrpHDnB4og04QMxntwYZaEe"], ["created_at", "2019-11-22 00:55:27.778423"], ["updated_at", "2019-11-22 00:55:27.778423"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.793623"], ["last_sign_in_at", "2019-11-22 00:55:27.793623"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.794256"], ["id", 338]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 338], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.803862"], ["updated_at", "2019-11-22 00:55:27.803862"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.805825"], ["updated_at", "2019-11-22 00:55:27.805825"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 291], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 338], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 338], ["room_id", 291], ["created_at", "2019-11-22 00:55:27.811060"], ["updated_at", "2019-11-22 00:55:27.811060"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 338], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 291], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 338], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 338], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$laZe4Gp9AahWs2MWD5DTJOqI3aHvJS.dE1JmLoCHCeuUSxz52dQVS"], ["created_at", "2019-11-22 00:55:27.836201"], ["updated_at", "2019-11-22 00:55:27.836201"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.850406"], ["last_sign_in_at", "2019-11-22 00:55:27.850406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.851120"], ["id", 339]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 339], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.859794"], ["updated_at", "2019-11-22 00:55:27.859794"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.861783"], ["updated_at", "2019-11-22 00:55:27.861783"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 293], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 339], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 339], ["room_id", 293], ["created_at", "2019-11-22 00:55:27.867886"], ["updated_at", "2019-11-22 00:55:27.867886"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 339], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 293], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 339], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 339], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wtYIVFSfltUuCe4nxPN24u7l2gw4NlZu5mazW5YZmC1elBqFov36O"], ["created_at", "2019-11-22 00:55:27.908497"], ["updated_at", "2019-11-22 00:55:27.908497"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.922602"], ["last_sign_in_at", "2019-11-22 00:55:27.922602"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.923196"], ["id", 340]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 340], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.932604"], ["updated_at", "2019-11-22 00:55:27.932604"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.934573"], ["updated_at", "2019-11-22 00:55:27.934573"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 295], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 340], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 340], ["room_id", 295], ["created_at", "2019-11-22 00:55:27.939170"], ["updated_at", "2019-11-22 00:55:27.939170"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 340], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 295], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 340], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 340], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$weCauW7Lp.pAXQ7pVfGxa.cZo9C7Tdvf6G0A4KZPYaa8S2yOwc3zK"], ["created_at", "2019-11-22 00:55:27.970447"], ["updated_at", "2019-11-22 00:55:27.970447"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:27.984642"], ["last_sign_in_at", "2019-11-22 00:55:27.984642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.985368"], ["id", 341]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 341], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (1.4ms)
Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.025094"], ["updated_at", "2019-11-22 00:55:28.025094"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 296], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 341], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 341], ["room_id", 296], ["created_at", "2019-11-22 00:55:28.030732"], ["updated_at", "2019-11-22 00:55:28.030732"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 341], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 341]] Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 41ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/131” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"131"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 131], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 131]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 341], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$VhqytUvGm7syqC2yFZzsCuYkYQPIMXHqFds79LSqSs/uUlhvdZ5Ni"], ["created_at", "2019-11-22 00:55:28.100136"], ["updated_at", "2019-11-22 00:55:28.100136"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.115016"], ["last_sign_in_at", "2019-11-22 00:55:28.115016"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.115938"], ["id", 342]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 342], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:28.126039"], ["updated_at", "2019-11-22 00:55:28.126039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 297], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 342], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 342], ["room_id", 297], ["created_at", "2019-11-22 00:55:28.132646"], ["updated_at", "2019-11-22 00:55:28.132646"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 342], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 342]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/132” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"132"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 132], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 132]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 342], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$yASsKQyFdsOcbon7bLRmv.A/z/yIRYLrJZCbhUs4cSTaCGyK4xD.m"], ["created_at", "2019-11-22 00:55:28.167958"], ["updated_at", "2019-11-22 00:55:28.167958"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.182957"], ["last_sign_in_at", "2019-11-22 00:55:28.182957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.183742"], ["id", 343]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 343], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.201168"], ["updated_at", "2019-11-22 00:55:28.201168"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 298], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 343], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 343], ["room_id", 298], ["created_at", "2019-11-22 00:55:28.208301"], ["updated_at", "2019-11-22 00:55:28.208301"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 343], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 343]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$h22mUZElZcL7YLVwec1FvORJ3XKV.CNv.3mAZOnym5C.pwg.ksLpy"], ["created_at", "2019-11-22 00:55:28.230663"], ["updated_at", "2019-11-22 00:55:28.230663"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.243945"], ["last_sign_in_at", "2019-11-22 00:55:28.243945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.244500"], ["id", 344]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 344], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:28.254343"], ["updated_at", "2019-11-22 00:55:28.254343"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 299], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 344], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 344], ["room_id", 299], ["created_at", "2019-11-22 00:55:28.259109"], ["updated_at", "2019-11-22 00:55:28.259109"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 344], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 344]] Rendered appointments/my_appointments.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$TAzZ6skK4EC4VjhShBa8lu4Opgcs0YLzUm9RKFk22dTM0RUQ3j3WC"], ["created_at", "2019-11-22 00:55:28.283059"], ["updated_at", "2019-11-22 00:55:28.283059"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.300162"], ["last_sign_in_at", "2019-11-22 00:55:28.300162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.300836"], ["id", 345]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 345], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.313194"], ["updated_at", "2019-11-22 00:55:28.313194"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.316076"], ["updated_at", "2019-11-22 00:55:28.316076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 345], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/appointments/300” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"300"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 300], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '300')[0m
Rendered appointments/show.html.erb within layouts/application (10.0ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 345], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 30ms (Views: 12.1ms | ActiveRecord: 1.2ms) Started POST “/appointments.300” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 345], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 300], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 345], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 345], ["room_id", 300], ["created_at", "2019-11-22 00:55:28.397706"], ["updated_at", "2019-11-22 00:55:28.397706"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 345], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rknWYHllVsvUwL3Dek8W3eQd7duy4nFMblLRtHbojWGQwfV2A4OZG"], ["created_at", "2019-11-22 00:55:28.415711"], ["updated_at", "2019-11-22 00:55:28.415711"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.428728"], ["last_sign_in_at", "2019-11-22 00:55:28.428728"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.429392"], ["id", 346]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 346], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.442116"], ["updated_at", "2019-11-22 00:55:28.442116"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.443835"], ["updated_at", "2019-11-22 00:55:28.443835"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 346], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/302” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"302"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 302], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '302')[0m
Rendered appointments/show.html.erb within layouts/application (1.4ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 346], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 1.1ms) Started POST “/appointments.302” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 346], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 346], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$tcZyCJ/HDr094D5i0tIjKOHhjvcmUv1H3uSLMckDwiE4ly63QCO3K"], ["created_at", "2019-11-22 00:55:28.501882"], ["updated_at", "2019-11-22 00:55:28.501882"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.515510"], ["last_sign_in_at", "2019-11-22 00:55:28.515510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.516184"], ["id", 347]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 347], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:55:28.527048"], ["updated_at", "2019-11-22 00:55:28.527048"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 347], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 347], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/304” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"304"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 347], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 304], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 304]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 347], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$tQFWgJ7rQuUPfZMYyhpQUObwq7MXRbrEYXdVjx.N0v3Kpk6bOGPj."], ["created_at", "2019-11-22 00:55:28.575859"], ["updated_at", "2019-11-22 00:55:28.575859"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:55:28.577894"], ["updated_at", "2019-11-22 00:55:28.577894"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.603812"], ["last_sign_in_at", "2019-11-22 00:55:28.603812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.604440"], ["id", 348]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 348], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 348], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.9ms) Started GET “/rooms/305/edit” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"305"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 348], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 305], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/305” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"305"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 348], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 305], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:55:28.669520"], ["id", 305]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/305 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/305” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"305"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 348], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 305], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3HB7ikfmDTkgNI3ZWMZipOWkRtZ70oKOsfvoLWNhEW9OG/pXuqmKq"], ["created_at", "2019-11-22 00:55:28.711492"], ["updated_at", "2019-11-22 00:55:28.711492"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.726861"], ["last_sign_in_at", "2019-11-22 00:55:28.726861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.727434"], ["id", 349]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 349], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.739921"], ["updated_at", "2019-11-22 00:55:28.739921"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.741779"], ["updated_at", "2019-11-22 00:55:28.741779"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 349], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Awy5fFfYowp4au/QQr/oUuHSoBVkWoXiO1RMP7tepbnIlOcI5AEIy"], ["created_at", "2019-11-22 00:55:28.773902"], ["updated_at", "2019-11-22 00:55:28.773902"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.788700"], ["last_sign_in_at", "2019-11-22 00:55:28.788700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.789274"], ["id", 350]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 350], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.801424"], ["updated_at", "2019-11-22 00:55:28.801424"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.803635"], ["updated_at", "2019-11-22 00:55:28.803635"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 350], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$40TNBlLgodzt2otsF2JUpePagFXIZh/DCx5/FqJs1MPtjvSOAe3HO"], ["created_at", "2019-11-22 00:55:28.836143"], ["updated_at", "2019-11-22 00:55:28.836143"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:28.868818"], ["last_sign_in_at", "2019-11-22 00:55:28.868818"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.869343"], ["id", 351]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 351], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.5ms) Rendered users/registrations/new.html.erb within layouts/application (18.0ms)
Completed 200 OK in 114ms (Views: 113.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$Q7gOzds40X5Ay8BLNvgPduP8W4W/3a7tD3g3R7nE4Gt15ZLdkACt6"], ["created_at", "2019-11-22 00:55:29.054305"], ["updated_at", "2019-11-22 00:55:29.054305"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:55:29.056993"], ["last_sign_in_at", "2019-11-22 00:55:29.056993"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:55:29.057514"], ["id", 352]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 352], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$VObBcc892pDfsRd7PpyD.u7ewf2cpWIifqSeMQ0piPspUtE/b/bmq"], ["created_at", "2019-11-22 00:55:29.154064"], ["updated_at", "2019-11-22 00:55:29.154064"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:55:29.180668"], ["last_sign_in_at", "2019-11-22 00:55:29.180668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:29.181688"], ["id", 353]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 353], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/353/edit” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"353"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 353], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.4ms) Started PUT “/users/353” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"353"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 353], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 353], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 353], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:55:29.242803"], ["id", 353]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 174ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 353], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aQ2CFrqpAyn7xtAFlwP5velMNtdxnLRRZIlNLl9hOnVYEJxnYyZfq"], ["created_at", "2019-11-22 00:57:53.175264"], ["updated_at", "2019-11-22 00:57:53.175264"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (45.3ms) Rendered users/sessions/new.html.erb within layouts/application (336.5ms)
Completed 200 OK in 493ms (Views: 485.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:53.753028"], ["last_sign_in_at", "2019-11-22 00:57:53.753028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:53.753757"], ["id", 354]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 161ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 354], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 54ms (Views: 35.4ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 354], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 354], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (5.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 73ms (Views: 44.8ms | ActiveRecord: 3.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$xpiVQpoHdCj9nLO/hL/hKuBtz.re97CSYyS9QmVRyUJA.M75xxuky"], ["created_at", "2019-11-22 00:57:54.078988"], ["updated_at", "2019-11-22 00:57:54.078988"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.095274"], ["last_sign_in_at", "2019-11-22 00:57:54.095274"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.095902"], ["id", 355]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 355], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 355], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 355], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.8ms)
Completed 200 OK in 34ms (Views: 18.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eNd8PD9h6sn3hkuQKoM3s.xsCPwzFsHGIpRyvqw.KQ1l4/KZVBvcm"], ["created_at", "2019-11-22 00:57:54.184287"], ["updated_at", "2019-11-22 00:57:54.184287"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.209111"], ["last_sign_in_at", "2019-11-22 00:57:54.209111"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.209798"], ["id", 356]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 356], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$HesTppAPbIW4UFV9WaGJQ.vH1vG9S2u41IYvcWArlL72hHvxrNr2W"], ["created_at", "2019-11-22 00:57:54.243464"], ["updated_at", "2019-11-22 00:57:54.243464"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.2ms) Rendered users/sessions/new.html.erb within layouts/application (2.5ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ocEcuy48s7pjiCE23N3H7e6B8fsVvHX5aQ/RuniCpwCgWQQu38SRq"], ["created_at", "2019-11-22 00:57:54.295425"], ["updated_at", "2019-11-22 00:57:54.295425"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.4ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.314736"], ["last_sign_in_at", "2019-11-22 00:57:54.314736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.315475"], ["id", 358]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 358], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.327852"], ["updated_at", "2019-11-22 00:57:54.327852"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.330577"], ["updated_at", "2019-11-22 00:57:54.330577"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 311], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 358], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 358], ["room_id", 311], ["created_at", "2019-11-22 00:57:54.395728"], ["updated_at", "2019-11-22 00:57:54.395728"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 358], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 311], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (4.2ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 358], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 60ms (Views: 42.8ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (11.2ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 358], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 31ms (Views: 13.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$v5IdPqBXLg1oMD9rQjQpwecGj2xk14SkJDnnDVRWmM9u6YneMyZuW"], ["created_at", "2019-11-22 00:57:54.526530"], ["updated_at", "2019-11-22 00:57:54.526530"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.540349"], ["last_sign_in_at", "2019-11-22 00:57:54.540349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.540969"], ["id", 359]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 359], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.549779"], ["updated_at", "2019-11-22 00:57:54.549779"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.551831"], ["updated_at", "2019-11-22 00:57:54.551831"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 313], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 359], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 359], ["room_id", 313], ["created_at", "2019-11-22 00:57:54.556600"], ["updated_at", "2019-11-22 00:57:54.556600"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 359], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 313], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 359], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 359], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$TUaHfuLi9zFvF1YfmkDfjeYCd/Uj0zhAFbXSKgauR1rFQ8dGGoM2q"], ["created_at", "2019-11-22 00:57:54.585982"], ["updated_at", "2019-11-22 00:57:54.585982"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.599581"], ["last_sign_in_at", "2019-11-22 00:57:54.599581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.600530"], ["id", 360]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 360], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.609367"], ["updated_at", "2019-11-22 00:57:54.609367"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.611395"], ["updated_at", "2019-11-22 00:57:54.611395"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 315], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 360], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 360], ["room_id", 315], ["created_at", "2019-11-22 00:57:54.616552"], ["updated_at", "2019-11-22 00:57:54.616552"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 360], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 315], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.2ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 360], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 360], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5Y3tWAUlQQRQiJrJZzJqTu1nbASoOXR9YrjuXwCyKGjz.oGn9nSAO"], ["created_at", "2019-11-22 00:57:54.655522"], ["updated_at", "2019-11-22 00:57:54.655522"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.671076"], ["last_sign_in_at", "2019-11-22 00:57:54.671076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.671722"], ["id", 361]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 361], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.681681"], ["updated_at", "2019-11-22 00:57:54.681681"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.683975"], ["updated_at", "2019-11-22 00:57:54.683975"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 317], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 361], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 361], ["room_id", 317], ["created_at", "2019-11-22 00:57:54.689218"], ["updated_at", "2019-11-22 00:57:54.689218"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 361], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 317], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.7ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 361], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 361], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$MmOWl4r97f356Vk7tBv8Ze1hBqo/NQvYae6gw0.7ICYrhkyYxAUxS"], ["created_at", "2019-11-22 00:57:54.722832"], ["updated_at", "2019-11-22 00:57:54.722832"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.740745"], ["last_sign_in_at", "2019-11-22 00:57:54.740745"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.741426"], ["id", 362]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 362], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:54.775322"], ["updated_at", "2019-11-22 00:57:54.775322"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 318], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 362], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 362], ["room_id", 318], ["created_at", "2019-11-22 00:57:54.782145"], ["updated_at", "2019-11-22 00:57:54.782145"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 362], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 362]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 41ms (Views: 4.9ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/140” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"140"}
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 140], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 140]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 362], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ZsKvVOWMCtsfBRaVLnElduLPDfUwKHCpKF4F1UtF9Hokq.qSaWp.q"], ["created_at", "2019-11-22 00:57:54.851413"], ["updated_at", "2019-11-22 00:57:54.851413"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.866309"], ["last_sign_in_at", "2019-11-22 00:57:54.866309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.867226"], ["id", 363]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 363], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.876898"], ["updated_at", "2019-11-22 00:57:54.876898"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 319], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 363], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 363], ["room_id", 319], ["created_at", "2019-11-22 00:57:54.882391"], ["updated_at", "2019-11-22 00:57:54.882391"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 363], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 363]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/141” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"141"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 141], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 141]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 363], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$EpwqKlFcWA566FZp.ceb3ORZMIcsZUjsC.qwlX9/QmEvZoNpbD1LG"], ["created_at", "2019-11-22 00:57:54.916254"], ["updated_at", "2019-11-22 00:57:54.916254"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.931150"], ["last_sign_in_at", "2019-11-22 00:57:54.931150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.931846"], ["id", 364]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 364], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:54.949093"], ["updated_at", "2019-11-22 00:57:54.949093"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 320], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 364], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 364], ["room_id", 320], ["created_at", "2019-11-22 00:57:54.955802"], ["updated_at", "2019-11-22 00:57:54.955802"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 364], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 364]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$FcdFBeRDFBrpwYbpSEB0h.bfQ.Og1Da7Y1qprHxrdkpjojUnIOwwe"], ["created_at", "2019-11-22 00:57:54.977401"], ["updated_at", "2019-11-22 00:57:54.977401"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:54.990966"], ["last_sign_in_at", "2019-11-22 00:57:54.990966"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.991465"], ["id", 365]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 365], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:55.000795"], ["updated_at", "2019-11-22 00:57:55.000795"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 321], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 365], ["LIMIT", 1]]
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 365], ["room_id", 321], ["created_at", "2019-11-22 00:57:55.005486"], ["updated_at", "2019-11-22 00:57:55.005486"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 365], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 365]] Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Al3ig2KsyeGwzGI8ERtrN.Tounk/UrPzsdLJGNCqEtYeUEHmp2p3m"], ["created_at", "2019-11-22 00:57:55.030795"], ["updated_at", "2019-11-22 00:57:55.030795"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.044768"], ["last_sign_in_at", "2019-11-22 00:57:55.044768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.045291"], ["id", 366]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 366], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.057483"], ["updated_at", "2019-11-22 00:57:55.057483"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.059606"], ["updated_at", "2019-11-22 00:57:55.059606"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 366], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 22ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started GET “/appointments/322” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"322"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 322], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '322')[0m
Rendered appointments/show.html.erb within layouts/application (10.0ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 366], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 31ms (Views: 12.2ms | ActiveRecord: 1.2ms) Started POST “/appointments.322” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 366], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 322], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 366], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 366], ["room_id", 322], ["created_at", "2019-11-22 00:57:55.143358"], ["updated_at", "2019-11-22 00:57:55.143358"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 366], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3RV1c3EqjP/kLHno47QVxewAOKbAbHK0mIK3UYKLj269Ih0y4EDiO"], ["created_at", "2019-11-22 00:57:55.159855"], ["updated_at", "2019-11-22 00:57:55.159855"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.174410"], ["last_sign_in_at", "2019-11-22 00:57:55.174410"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.174931"], ["id", 367]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 367], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.186974"], ["updated_at", "2019-11-22 00:57:55.186974"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.188917"], ["updated_at", "2019-11-22 00:57:55.188917"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 367], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/appointments/324” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"324"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 324], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '324')[0m
Rendered appointments/show.html.erb within layouts/application (1.3ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 367], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.9ms) Started POST “/appointments.324” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 367], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 367], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$UIwsmH.Eo30iHNgCXpQ2bOnem7VTyiULXEhrnWT6xMysnufmSDp/a"], ["created_at", "2019-11-22 00:57:55.244621"], ["updated_at", "2019-11-22 00:57:55.244621"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.257980"], ["last_sign_in_at", "2019-11-22 00:57:55.257980"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.258650"], ["id", 368]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 368], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:57:55.269782"], ["updated_at", "2019-11-22 00:57:55.269782"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 368], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 368], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started DELETE “/rooms/326” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"326"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 368], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 326], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 326]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 368], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$w5PZ/3FNuI6tqDl95dEIR.lw6FGQnbZHEnsXGuH9eUpN/dtdLj9XK"], ["created_at", "2019-11-22 00:57:55.318633"], ["updated_at", "2019-11-22 00:57:55.318633"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:57:55.320802"], ["updated_at", "2019-11-22 00:57:55.320802"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.347870"], ["last_sign_in_at", "2019-11-22 00:57:55.347870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.348577"], ["id", 369]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 369], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 369], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started GET “/rooms/327/edit” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"327"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 369], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 327], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/327” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"327"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 369], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 327], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:57:55.411084"], ["id", 327]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/327 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/327” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"327"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 369], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 327], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 2.4ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$WmSQU2qdEcpXDBYolcx2HOgxJW/XlnfBkN3QpRb/JndCOxrD4FFlS"], ["created_at", "2019-11-22 00:57:55.449969"], ["updated_at", "2019-11-22 00:57:55.449969"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.463455"], ["last_sign_in_at", "2019-11-22 00:57:55.463455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.464048"], ["id", 370]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 370], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.476795"], ["updated_at", "2019-11-22 00:57:55.476795"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.478631"], ["updated_at", "2019-11-22 00:57:55.478631"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 370], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$UUM313PX5QhK4Cr26LIROe1uC8EZY/6atLTIdJqGn0tvjcLL0cBKa"], ["created_at", "2019-11-22 00:57:55.511177"], ["updated_at", "2019-11-22 00:57:55.511177"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.525662"], ["last_sign_in_at", "2019-11-22 00:57:55.525662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.526408"], ["id", 371]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 371], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.538930"], ["updated_at", "2019-11-22 00:57:55.538930"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.541086"], ["updated_at", "2019-11-22 00:57:55.541086"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 371], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$dt08DCsOS7GYuSUN3mcdyOoCMy0HnrTuruP6rjSk2fEEgEBda3DeW"], ["created_at", "2019-11-22 00:57:55.576795"], ["updated_at", "2019-11-22 00:57:55.576795"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.603202"], ["last_sign_in_at", "2019-11-22 00:57:55.603202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.603781"], ["id", 372]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 372], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (17.9ms)
Completed 200 OK in 113ms (Views: 111.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$RBUw9WdFzk9szLhFXhaeo.UjQ5iIkmr54c5HJkKvGCMopFqZI0D/m"], ["created_at", "2019-11-22 00:57:55.785281"], ["updated_at", "2019-11-22 00:57:55.785281"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:57:55.787202"], ["last_sign_in_at", "2019-11-22 00:57:55.787202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:57:55.787651"], ["id", 373]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 373], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$XzadQpFxtTejFKO1Wun1e.y3qJb2UMXRoWxGYzoynwU6C9QLkuxFK"], ["created_at", "2019-11-22 00:57:55.886399"], ["updated_at", "2019-11-22 00:57:55.886399"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 00:57:55.912401"], ["last_sign_in_at", "2019-11-22 00:57:55.912401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.913000"], ["id", 374]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 374], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/users/374/edit” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"374"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 374], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.4ms) Started PUT “/users/374” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"374"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 374], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 374], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 374], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:57:55.975258"], ["id", 374]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 156ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:56 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 374], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (2.7ms) Rendered layouts/_header-user.html.erb (1.5ms)
Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.6ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$cHMY/.waWJRl3bbIHbQrVevLOo/l/IjDDBNOWME6MucfDhHgF4KSG"], ["created_at", "2019-11-22 01:07:34.389278"], ["updated_at", "2019-11-22 01:07:34.389278"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:34 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (47.7ms) Rendered users/sessions/new.html.erb within layouts/application (617.0ms)
Completed 200 OK in 772ms (Views: 764.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:35.240940"], ["last_sign_in_at", "2019-11-22 01:07:35.240940"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.241633"], ["id", 375]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 165ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 375], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 65ms (Views: 46.8ms | ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 375], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 375], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.8ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 69ms (Views: 42.7ms | ActiveRecord: 3.0ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qVbOXTsOvcGNH85t3j97TO11yymlEyDqeydfIxeA1wMnKkVjnI85S"], ["created_at", "2019-11-22 01:07:35.561581"], ["updated_at", "2019-11-22 01:07:35.561581"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:35.576280"], ["last_sign_in_at", "2019-11-22 01:07:35.576280"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.576946"], ["id", 376]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 376], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 376], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 376], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.8ms)
Completed 200 OK in 33ms (Views: 17.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$9GdlXK1ZV.KEGxzk5ptRqOOXjXVaCHm0HcwJx3q62jCCRiBghgnPC"], ["created_at", "2019-11-22 01:07:35.655460"], ["updated_at", "2019-11-22 01:07:35.655460"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:35.677816"], ["last_sign_in_at", "2019-11-22 01:07:35.677816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.678372"], ["id", 377]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 377], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$o3v2JJVt9RMIDf9AHb1R8.ib9xIENsLhWrN1ihea6AzjuLIb2Ruw6"], ["created_at", "2019-11-22 01:07:35.707931"], ["updated_at", "2019-11-22 01:07:35.707931"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.3ms) Rendered users/sessions/new.html.erb within layouts/application (2.5ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$.dVhS9aAsN5Y9U6Q8NyB5uWLkrRvRQmNgJ3MuKc46nonjFLmOLrnK"], ["created_at", "2019-11-22 01:07:35.751019"], ["updated_at", "2019-11-22 01:07:35.751019"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:35.768157"], ["last_sign_in_at", "2019-11-22 01:07:35.768157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.768726"], ["id", 379]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 379], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:35.780592"], ["updated_at", "2019-11-22 01:07:35.780592"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:35.783364"], ["updated_at", "2019-11-22 01:07:35.783364"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 333], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 379], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 379], ["room_id", 333], ["created_at", "2019-11-22 01:07:35.844439"], ["updated_at", "2019-11-22 01:07:35.844439"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 379], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 333], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 379], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 69ms (Views: 41.1ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 379], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$QMIYi1UR5F8JX/T5WYY57urVN3VwkI5oqSttnwH1wf1gASOU/q1/."], ["created_at", "2019-11-22 01:07:35.967030"], ["updated_at", "2019-11-22 01:07:35.967030"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:35.980323"], ["last_sign_in_at", "2019-11-22 01:07:35.980323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.980939"], ["id", 380]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 380], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:35.989589"], ["updated_at", "2019-11-22 01:07:35.989589"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:35.991277"], ["updated_at", "2019-11-22 01:07:35.991277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 335], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 380], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 380], ["room_id", 335], ["created_at", "2019-11-22 01:07:35.996285"], ["updated_at", "2019-11-22 01:07:35.996285"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 380], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 335], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 380], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 380], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$QTIeXmjZBAoy/LyhI4Y9U.FOca47prbnYF5hBURcuFg7pv7yy0bFO"], ["created_at", "2019-11-22 01:07:36.023876"], ["updated_at", "2019-11-22 01:07:36.023876"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.037127"], ["last_sign_in_at", "2019-11-22 01:07:36.037127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.037697"], ["id", 381]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 381], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:36.046429"], ["updated_at", "2019-11-22 01:07:36.046429"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.048312"], ["updated_at", "2019-11-22 01:07:36.048312"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 337], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 381], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 381], ["room_id", 337], ["created_at", "2019-11-22 01:07:36.053416"], ["updated_at", "2019-11-22 01:07:36.053416"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 381], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 337], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 381], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 381], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$a.sZet3Lr/z2cohX/Wx0YuXJf0lF2HfRIaLTuNLjMk73NVVbm8jqK"], ["created_at", "2019-11-22 01:07:36.086328"], ["updated_at", "2019-11-22 01:07:36.086328"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.099448"], ["last_sign_in_at", "2019-11-22 01:07:36.099448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.100005"], ["id", 382]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 382], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:36.108512"], ["updated_at", "2019-11-22 01:07:36.108512"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.110351"], ["updated_at", "2019-11-22 01:07:36.110351"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 339], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 382], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 382], ["room_id", 339], ["created_at", "2019-11-22 01:07:36.115349"], ["updated_at", "2019-11-22 01:07:36.115349"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 382], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 339], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 382], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 382], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$FzgC8c.3st2.qcy9cu/.iuLXtzaan2x/TLsDrEfyvGsfcZYZUAWd."], ["created_at", "2019-11-22 01:07:36.150332"], ["updated_at", "2019-11-22 01:07:36.150332"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.163225"], ["last_sign_in_at", "2019-11-22 01:07:36.163225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.163850"], ["id", 383]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 383], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 20ms (Views: 19.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.194999"], ["updated_at", "2019-11-22 01:07:36.194999"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 340], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 383], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 383], ["room_id", 340], ["created_at", "2019-11-22 01:07:36.200095"], ["updated_at", "2019-11-22 01:07:36.200095"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 383], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 383]] Rendered appointments/my_appointments.html.erb within layouts/application (3.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 39ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/149” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"149"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 149], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 149]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 383], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$6gFyVLEJ7oz65XKR9rGoM..kN6Khh4v4Sky9iaZOtA6FlkKo4bkBK"], ["created_at", "2019-11-22 01:07:36.266625"], ["updated_at", "2019-11-22 01:07:36.266625"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.281422"], ["last_sign_in_at", "2019-11-22 01:07:36.281422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.282049"], ["id", 384]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 384], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.293010"], ["updated_at", "2019-11-22 01:07:36.293010"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 341], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 384], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 384], ["room_id", 341], ["created_at", "2019-11-22 01:07:36.299195"], ["updated_at", "2019-11-22 01:07:36.299195"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 384], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 384]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/150” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"150"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 150], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 150]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 384], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$6Q9rS8sRj0ak.mYJCKPuzu38aNEgyYDgz9BvvlUwmLT2nEuqokk3a"], ["created_at", "2019-11-22 01:07:36.330985"], ["updated_at", "2019-11-22 01:07:36.330985"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.345086"], ["last_sign_in_at", "2019-11-22 01:07:36.345086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.345820"], ["id", 385]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 385], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.360968"], ["updated_at", "2019-11-22 01:07:36.360968"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 342], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 385], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 385], ["room_id", 342], ["created_at", "2019-11-22 01:07:36.367466"], ["updated_at", "2019-11-22 01:07:36.367466"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 385], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 385]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$7HVNXEf841/9UuQIX4IbHOl8Od6u8uRtb9oxjoehZIUJ/t5lpBcGS"], ["created_at", "2019-11-22 01:07:36.389132"], ["updated_at", "2019-11-22 01:07:36.389132"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.404533"], ["last_sign_in_at", "2019-11-22 01:07:36.404533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.405237"], ["id", 386]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 386], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.420664"], ["updated_at", "2019-11-22 01:07:36.420664"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 343], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 386], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 386], ["room_id", 343], ["created_at", "2019-11-22 01:07:36.425535"], ["updated_at", "2019-11-22 01:07:36.425535"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 386], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 386]] Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$C4KRrKek5h2qzvxUoItK2uyw/a4tv7VqXOtAd2peswn9zSFEDYBFC"], ["created_at", "2019-11-22 01:07:36.446100"], ["updated_at", "2019-11-22 01:07:36.446100"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.459626"], ["last_sign_in_at", "2019-11-22 01:07:36.459626"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.460202"], ["id", 387]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 387], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.471185"], ["updated_at", "2019-11-22 01:07:36.471185"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.472811"], ["updated_at", "2019-11-22 01:07:36.472811"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 387], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 22ms (Views: 3.4ms | ActiveRecord: 0.7ms) Started GET “/appointments/344” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"344"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 344], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '344')[0m
Rendered appointments/show.html.erb within layouts/application (10.1ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 387], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 30ms (Views: 12.1ms | ActiveRecord: 1.2ms) Started POST “/appointments.344” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 387], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 344], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 387], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 387], ["room_id", 344], ["created_at", "2019-11-22 01:07:36.550388"], ["updated_at", "2019-11-22 01:07:36.550388"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 387], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$BTrF6Sv8sDe5T/vvNeIV6u.KIhBMPFOw44v4PZsTERhygN1AARax6"], ["created_at", "2019-11-22 01:07:36.565937"], ["updated_at", "2019-11-22 01:07:36.565937"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.578891"], ["last_sign_in_at", "2019-11-22 01:07:36.578891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.579506"], ["id", 388]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 388], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.590290"], ["updated_at", "2019-11-22 01:07:36.590290"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.592078"], ["updated_at", "2019-11-22 01:07:36.592078"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 388], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/346” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"346"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 346], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '346')[0m
Rendered appointments/show.html.erb within layouts/application (1.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 388], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 1.0ms) Started POST “/appointments.346” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 388], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 388], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$lEL/YOz.6tJIAMpu/iy0leC4OOej8uLYLPKsQ6uCTdXTP5/d2ZRAe"], ["created_at", "2019-11-22 01:07:36.639245"], ["updated_at", "2019-11-22 01:07:36.639245"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.652701"], ["last_sign_in_at", "2019-11-22 01:07:36.652701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.653355"], ["id", 389]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 389], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:07:36.667735"], ["updated_at", "2019-11-22 01:07:36.667735"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 389], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 389], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/348” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"348"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 389], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 348], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 348]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 389], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Be1pUYPZkP8kp1CifzboauMKeGEXCe7okz9gyvjaP15c05mFkRpRe"], ["created_at", "2019-11-22 01:07:36.707054"], ["updated_at", "2019-11-22 01:07:36.707054"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:07:36.709146"], ["updated_at", "2019-11-22 01:07:36.709146"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.5ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.732585"], ["last_sign_in_at", "2019-11-22 01:07:36.732585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.733201"], ["id", 390]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 390], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 390], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms/349/edit” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"349"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 390], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 349], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/349” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"349"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 390], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 349], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:07:36.791201"], ["id", 349]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/349 Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/rooms/349” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"349"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 390], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 349], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Q1hYTi.ONHX3kAlAymrEJ.1me9udd5MrhI9noPJgW/VeNGRxUNdGG"], ["created_at", "2019-11-22 01:07:36.827482"], ["updated_at", "2019-11-22 01:07:36.827482"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.840695"], ["last_sign_in_at", "2019-11-22 01:07:36.840695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.841264"], ["id", 391]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 391], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.852716"], ["updated_at", "2019-11-22 01:07:36.852716"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.854716"], ["updated_at", "2019-11-22 01:07:36.854716"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 391], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$XRPu8T5HMVsiVcI.MouMJOw8dK36c8XuJ5dNDqLl0TO8m0tHmnGGK"], ["created_at", "2019-11-22 01:07:36.879836"], ["updated_at", "2019-11-22 01:07:36.879836"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.893126"], ["last_sign_in_at", "2019-11-22 01:07:36.893126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.893727"], ["id", 392]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 392], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.908999"], ["updated_at", "2019-11-22 01:07:36.908999"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.910934"], ["updated_at", "2019-11-22 01:07:36.910934"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 392], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$XJYF1LsbvJovchn9qLLXSue6wYqDC/s85crWNZnZJPog/Kp8PiWzO"], ["created_at", "2019-11-22 01:07:36.935416"], ["updated_at", "2019-11-22 01:07:36.935416"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:36.958541"], ["last_sign_in_at", "2019-11-22 01:07:36.958541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.959112"], ["id", 393]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 393], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (17.5ms)
Completed 200 OK in 108ms (Views: 107.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$jnv4mWBELYxkkYMhUA1eJuW3P7NLfE73Y1hWVkHQIsoXk9Ujiq71u"], ["created_at", "2019-11-22 01:07:37.127532"], ["updated_at", "2019-11-22 01:07:37.127532"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:07:37.129480"], ["last_sign_in_at", "2019-11-22 01:07:37.129480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:07:37.130101"], ["id", 394]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 394], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$0UMgE7/95HFOtcRT2mkTi.NOnpQlTSOb3wh2UoHsKTn4u7IuLG7J6"], ["created_at", "2019-11-22 01:07:37.224850"], ["updated_at", "2019-11-22 01:07:37.224850"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:07:37.248089"], ["last_sign_in_at", "2019-11-22 01:07:37.248089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:37.248682"], ["id", 395]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 395], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/395/edit” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"395"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 395], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.4ms) Started PUT “/users/395” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"395"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 395], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 395], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 395], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:07:37.306273"], ["id", 395]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 154ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 395], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$8F4DLDAmxTVwb2nbCl3yGuRxP8DF76/fvkVZJlHb/bT.q6fKEqkP6"], ["created_at", "2019-11-22 01:10:59.424433"], ["updated_at", "2019-11-22 01:10:59.424433"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:10:59 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (45.6ms) Rendered users/sessions/new.html.erb within layouts/application (330.6ms)
Completed 200 OK in 485ms (Views: 478.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:10:59 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:10:59.993604"], ["last_sign_in_at", "2019-11-22 01:10:59.993604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:10:59.994245"], ["id", 396]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 159ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 396], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 53ms (Views: 34.8ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 396], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 396], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 69ms (Views: 42.2ms | ActiveRecord: 3.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 396], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:11:00.309251"], ["updated_at", "2019-11-22 01:11:00.309251"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 396], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qDzzst0GEe3rVSc3cJCRYONYCTxZlrEKSuU.nzEMkUqqyrL7a2wzO"], ["created_at", "2019-11-22 01:11:00.327612"], ["updated_at", "2019-11-22 01:11:00.327612"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:00.343737"], ["last_sign_in_at", "2019-11-22 01:11:00.343737"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.344287"], ["id", 397]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 397], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 397], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 397], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 397], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:11:00.378517"], ["updated_at", "2019-11-22 01:11:00.378517"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 397], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (1.1ms)
Completed 200 OK in 39ms (Views: 22.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$WSbr1cVOfnRQS8KFtBedCujQC3gSDZMaQto6FFh7xoYOrAGZ0xx8C"], ["created_at", "2019-11-22 01:11:00.452875"], ["updated_at", "2019-11-22 01:11:00.452875"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:00.479483"], ["last_sign_in_at", "2019-11-22 01:11:00.479483"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.480036"], ["id", 398]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 398], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.6ms)
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$q49wwIMZYpIUn.hjCxI9DORt9LOHDGdNAEPp4.xrScPIdYSfkrY2y"], ["created_at", "2019-11-22 01:11:00.510474"], ["updated_at", "2019-11-22 01:11:00.510474"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.4ms) Rendered users/sessions/new.html.erb within layouts/application (2.5ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$V6zjnu2Kogty.eX0cWl6SOn0O0zP5jSnkFtbHfeuP0XOU18lbtjPO"], ["created_at", "2019-11-22 01:11:00.559086"], ["updated_at", "2019-11-22 01:11:00.559086"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:00.577046"], ["last_sign_in_at", "2019-11-22 01:11:00.577046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.577599"], ["id", 400]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 400], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.589257"], ["updated_at", "2019-11-22 01:11:00.589257"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.591194"], ["updated_at", "2019-11-22 01:11:00.591194"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 357], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 400], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 400], ["room_id", 357], ["created_at", "2019-11-22 01:11:00.659445"], ["updated_at", "2019-11-22 01:11:00.659445"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 400], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 357], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.8ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 400], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 58ms (Views: 41.2ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 400], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$rM1BWBs2swJIhNW.XPK02eK2UjReKhpBKj1rqc5GxMegCH5V1fcBW"], ["created_at", "2019-11-22 01:11:00.776175"], ["updated_at", "2019-11-22 01:11:00.776175"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:00.790031"], ["last_sign_in_at", "2019-11-22 01:11:00.790031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.790562"], ["id", 401]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 401], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.799063"], ["updated_at", "2019-11-22 01:11:00.799063"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.801144"], ["updated_at", "2019-11-22 01:11:00.801144"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 359], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 401], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 401], ["room_id", 359], ["created_at", "2019-11-22 01:11:00.806289"], ["updated_at", "2019-11-22 01:11:00.806289"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 401], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 359], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 401], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 401], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wmrCsP4W1C.xOu1zYyvz7eD9w0u1wv.prnUVsqYfrxAuxZHCztMaS"], ["created_at", "2019-11-22 01:11:00.835500"], ["updated_at", "2019-11-22 01:11:00.835500"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:00.849091"], ["last_sign_in_at", "2019-11-22 01:11:00.849091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.849674"], ["id", 402]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 402], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.858798"], ["updated_at", "2019-11-22 01:11:00.858798"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.860711"], ["updated_at", "2019-11-22 01:11:00.860711"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 361], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 402], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 402], ["room_id", 361], ["created_at", "2019-11-22 01:11:00.865866"], ["updated_at", "2019-11-22 01:11:00.865866"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 402], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 361], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 402], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 402], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$mEblg6VQSRWaC8CVU3Wkk.th4YvfoiISVd8Rjw4eaiLbwbEHrRDXG"], ["created_at", "2019-11-22 01:11:00.904721"], ["updated_at", "2019-11-22 01:11:00.904721"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:00.918764"], ["last_sign_in_at", "2019-11-22 01:11:00.918764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.919435"], ["id", 403]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 403], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.928661"], ["updated_at", "2019-11-22 01:11:00.928661"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.930662"], ["updated_at", "2019-11-22 01:11:00.930662"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 363], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 403], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 403], ["room_id", 363], ["created_at", "2019-11-22 01:11:00.936205"], ["updated_at", "2019-11-22 01:11:00.936205"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 403], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 363], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.7ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 403], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 403], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$WjTBm8PCBM2yipqGPh5KmuE61Yjm3A7Tvo4.YCwa8foT1Z.0iPJIC"], ["created_at", "2019-11-22 01:11:00.973038"], ["updated_at", "2019-11-22 01:11:00.973038"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:00.988497"], ["last_sign_in_at", "2019-11-22 01:11:00.988497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.989072"], ["id", 404]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 404], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.026495"], ["updated_at", "2019-11-22 01:11:01.026495"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 364], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 404], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 404], ["room_id", 364], ["created_at", "2019-11-22 01:11:01.034134"], ["updated_at", "2019-11-22 01:11:01.034134"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 404], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 404]] Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 41ms (Views: 4.5ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/158” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"158"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 158], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 158]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 404], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$56q5MoSz4DrBwVLB5YMgk.0Ahs7zg0vwR/c9wIz2lLF2iKOp0xtxy"], ["created_at", "2019-11-22 01:11:01.102463"], ["updated_at", "2019-11-22 01:11:01.102463"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.116659"], ["last_sign_in_at", "2019-11-22 01:11:01.116659"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.117817"], ["id", 405]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 405], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:01.128391"], ["updated_at", "2019-11-22 01:11:01.128391"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 365], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 405], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 405], ["room_id", 365], ["created_at", "2019-11-22 01:11:01.135235"], ["updated_at", "2019-11-22 01:11:01.135235"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 405], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 405]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/159” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"159"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 159], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 159]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 405], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9ns6lhi0jlLBIr8sMzRH6uU7twJmNamyXSi3Kw.VTpSKNc6hqMoQW"], ["created_at", "2019-11-22 01:11:01.172718"], ["updated_at", "2019-11-22 01:11:01.172718"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.187663"], ["last_sign_in_at", "2019-11-22 01:11:01.187663"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.188372"], ["id", 406]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 406], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.206482"], ["updated_at", "2019-11-22 01:11:01.206482"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 366], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 406], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 406], ["room_id", 366], ["created_at", "2019-11-22 01:11:01.211940"], ["updated_at", "2019-11-22 01:11:01.211940"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 406], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 406]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$zTBgA4BYRz2EaVvBguyCK.N4NybsISh0PfNUQIC4h1k.RAkE.oj3i"], ["created_at", "2019-11-22 01:11:01.233180"], ["updated_at", "2019-11-22 01:11:01.233180"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.249894"], ["last_sign_in_at", "2019-11-22 01:11:01.249894"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.250463"], ["id", 407]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 407], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:01.259796"], ["updated_at", "2019-11-22 01:11:01.259796"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 367], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 407], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 407], ["room_id", 367], ["created_at", "2019-11-22 01:11:01.264438"], ["updated_at", "2019-11-22 01:11:01.264438"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 407], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 407]] Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7Tnhs2NpwPkPPQ0rg/OBfuIlAxmZn5zvN/MW1fM1b7fZFYu47L43G"], ["created_at", "2019-11-22 01:11:01.286826"], ["updated_at", "2019-11-22 01:11:01.286826"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.299873"], ["last_sign_in_at", "2019-11-22 01:11:01.299873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.300598"], ["id", 408]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 408], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.312578"], ["updated_at", "2019-11-22 01:11:01.312578"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.314120"], ["updated_at", "2019-11-22 01:11:01.314120"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 408], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/appointments/368” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"368"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 368], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '368')[0m
Rendered appointments/show.html.erb within layouts/application (9.8ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 408], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 30ms (Views: 11.7ms | ActiveRecord: 1.5ms) Started POST “/appointments.368” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 408], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 368], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 408], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 408], ["room_id", 368], ["created_at", "2019-11-22 01:11:01.394838"], ["updated_at", "2019-11-22 01:11:01.394838"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 408], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$G6KqCjpuGe00m/4aa0bOKeC5N1/7.X3Et/FjceJceAb3p6eETnxFO"], ["created_at", "2019-11-22 01:11:01.411702"], ["updated_at", "2019-11-22 01:11:01.411702"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.425691"], ["last_sign_in_at", "2019-11-22 01:11:01.425691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.426244"], ["id", 409]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 409], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.438532"], ["updated_at", "2019-11-22 01:11:01.438532"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.440318"], ["updated_at", "2019-11-22 01:11:01.440318"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 409], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms) Started GET “/appointments/370” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"370"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 370], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '370')[0m
Rendered appointments/show.html.erb within layouts/application (1.7ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 409], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 1.2ms) Started POST “/appointments.370” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 409], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 409], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$JLSfK7pp4teMr8CMlYcxouqLCnm3EFu5QR4/ipQKuyZjRWWPJhJWK"], ["created_at", "2019-11-22 01:11:01.500687"], ["updated_at", "2019-11-22 01:11:01.500687"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (6.0ms)
Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.521250"], ["last_sign_in_at", "2019-11-22 01:11:01.521250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.522084"], ["id", 410]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 410], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:11:01.534496"], ["updated_at", "2019-11-22 01:11:01.534496"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 410], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 410], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/372” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"372"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 410], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 372], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 372]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 410], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$dnYEXzjoQ6RWqgm9K8XmyurSVsnKkj6iU5krmUUUn3yXqIZnW5Iyu"], ["created_at", "2019-11-22 01:11:01.582067"], ["updated_at", "2019-11-22 01:11:01.582067"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:11:01.584301"], ["updated_at", "2019-11-22 01:11:01.584301"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.608959"], ["last_sign_in_at", "2019-11-22 01:11:01.608959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.609524"], ["id", 411]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 411], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 411], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms) Started GET “/rooms/373/edit” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"373"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 411], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 373], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/373” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"373"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 411], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 373], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:11:01.670314"], ["id", 373]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/373 Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/rooms/373” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"373"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 411], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 373], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$CDUmFC7XnGwG1S80GUkV9efLHYWWYL8jxs0aBZtMIK1cf1TF.xzn."], ["created_at", "2019-11-22 01:11:01.709524"], ["updated_at", "2019-11-22 01:11:01.709524"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.723300"], ["last_sign_in_at", "2019-11-22 01:11:01.723300"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.723875"], ["id", 412]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 412], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.736094"], ["updated_at", "2019-11-22 01:11:01.736094"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.738269"], ["updated_at", "2019-11-22 01:11:01.738269"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 412], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$sq6I6FhpK6hAP4EGaVaAgu8sNDTsRkBoQEy3KNiKryY.d7QLXHtqy"], ["created_at", "2019-11-22 01:11:01.769622"], ["updated_at", "2019-11-22 01:11:01.769622"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (4.3ms) Rendered users/sessions/new.html.erb within layouts/application (5.3ms)
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.788240"], ["last_sign_in_at", "2019-11-22 01:11:01.788240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.788833"], ["id", 413]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 413], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.800365"], ["updated_at", "2019-11-22 01:11:01.800365"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.802575"], ["updated_at", "2019-11-22 01:11:01.802575"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 413], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$2Q.jynUsk1hXhM9VhqYKyuxxfxj9nVVjpzTIziPhx6Ffk8dS5HyOK"], ["created_at", "2019-11-22 01:11:01.834146"], ["updated_at", "2019-11-22 01:11:01.834146"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:01.860715"], ["last_sign_in_at", "2019-11-22 01:11:01.860715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.861337"], ["id", 414]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 414], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.1ms) Rendered users/registrations/new.html.erb within layouts/application (17.3ms)
Completed 200 OK in 108ms (Views: 107.0ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$kH8RN1oRkhz/KENEYGcsyOqyk0scbNU3CniZcP.3.bYKxFu2etiJK"], ["created_at", "2019-11-22 01:11:02.037951"], ["updated_at", "2019-11-22 01:11:02.037951"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:11:02.039883"], ["last_sign_in_at", "2019-11-22 01:11:02.039883"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:11:02.040372"], ["id", 415]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 84ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 415], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$ynjUzJMlSLlvEdJm5jB8yuZV0FS.RHk29E8tQRtCHxyjCg6jGqS1q"], ["created_at", "2019-11-22 01:11:02.136537"], ["updated_at", "2019-11-22 01:11:02.136537"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:11:02.163019"], ["last_sign_in_at", "2019-11-22 01:11:02.163019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:02.163717"], ["id", 416]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 416], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/users/416/edit” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"416"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 416], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.5ms) Started PUT “/users/416” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"416"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 416], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 416], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 416], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:11:02.231759"], ["id", 416]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 166ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 416], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GU76.OAOqwIG8EWkVQ1F0.jTOziefkKvQ5uGvFQLt0Uu/OVygNJKC"], ["created_at", "2019-11-22 01:12:15.247927"], ["updated_at", "2019-11-22 01:12:15.247927"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:15 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (47.3ms) Rendered users/sessions/new.html.erb within layouts/application (335.8ms)
Completed 200 OK in 491ms (Views: 483.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:15 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:15.821070"], ["last_sign_in_at", "2019-11-22 01:12:15.821070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:15.821806"], ["id", 417]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 162ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:15 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 417], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 53ms (Views: 34.5ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 417], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (14.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 417], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 72ms (Views: 43.6ms | ActiveRecord: 3.1ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 417], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:12:16.144053"], ["updated_at", "2019-11-22 01:12:16.144053"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 417], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$w0YjchHm1hCmNKy.ib26/.81dhr0rD/ZuT5N6X1pMdCd.rlMVKKPK"], ["created_at", "2019-11-22 01:12:16.162921"], ["updated_at", "2019-11-22 01:12:16.162921"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.5ms) Rendered users/sessions/new.html.erb within layouts/application (2.7ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.180676"], ["last_sign_in_at", "2019-11-22 01:12:16.180676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.181249"], ["id", 418]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 418], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 418], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 418], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.8ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 418], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:12:16.216276"], ["updated_at", "2019-11-22 01:12:16.216276"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 418], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (1.0ms)
Completed 200 OK in 37ms (Views: 20.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$JoVZs6PhG62gDU7r/ksxeugYqxcFOoDul2gHBuKL8.CTwsFdpCJUW"], ["created_at", "2019-11-22 01:12:16.288581"], ["updated_at", "2019-11-22 01:12:16.288581"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.2ms) Rendered users/sessions/new.html.erb within layouts/application (2.4ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.314281"], ["last_sign_in_at", "2019-11-22 01:12:16.314281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.315073"], ["id", 419]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 419], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.5ms)
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$MXJYFe3FwesAA7X9jK6J1uLN6I24IYBSLakQT6wYO5he5NfgTafxe"], ["created_at", "2019-11-22 01:12:16.345718"], ["updated_at", "2019-11-22 01:12:16.345718"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$052mXcm2tTZ2QLgFTmC46eTEXSqzaEG12QL4uTzRAI3zKvEj274xG"], ["created_at", "2019-11-22 01:12:16.394833"], ["updated_at", "2019-11-22 01:12:16.394833"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.2ms) Rendered users/sessions/new.html.erb within layouts/application (2.4ms)
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.413147"], ["last_sign_in_at", "2019-11-22 01:12:16.413147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.414054"], ["id", 421]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 421], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.425884"], ["updated_at", "2019-11-22 01:12:16.425884"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.428101"], ["updated_at", "2019-11-22 01:12:16.428101"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 381], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 421], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 421], ["room_id", 381], ["created_at", "2019-11-22 01:12:16.497097"], ["updated_at", "2019-11-22 01:12:16.497097"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 421], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 381], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.7ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 421], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 59ms (Views: 41.6ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 421], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$86.z5Sc0J4nMg4Nv71EEl.XMRW3PPBFun0W9h65Htr2EjrtbULSx."], ["created_at", "2019-11-22 01:12:16.616822"], ["updated_at", "2019-11-22 01:12:16.616822"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.630606"], ["last_sign_in_at", "2019-11-22 01:12:16.630606"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.631160"], ["id", 422]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 422], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.640588"], ["updated_at", "2019-11-22 01:12:16.640588"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.642471"], ["updated_at", "2019-11-22 01:12:16.642471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 383], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 422], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 422], ["room_id", 383], ["created_at", "2019-11-22 01:12:16.647643"], ["updated_at", "2019-11-22 01:12:16.647643"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 422], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 383], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.4ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 422], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 422], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$B.Xlb7lZNz6FIi6afXFYRODp7fdrswrP3emdcO/OF2ZhbYJgDk.y6"], ["created_at", "2019-11-22 01:12:16.677752"], ["updated_at", "2019-11-22 01:12:16.677752"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.693414"], ["last_sign_in_at", "2019-11-22 01:12:16.693414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.694064"], ["id", 423]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 423], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.703296"], ["updated_at", "2019-11-22 01:12:16.703296"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.705302"], ["updated_at", "2019-11-22 01:12:16.705302"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 385], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 423], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 423], ["room_id", 385], ["created_at", "2019-11-22 01:12:16.710471"], ["updated_at", "2019-11-22 01:12:16.710471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 423], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 385], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 423], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 423], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VCrlWrHFleFaWzN5hI4Rd.mu4QEBp5dC.ALsKpvXVLA.8Xb12oD86"], ["created_at", "2019-11-22 01:12:16.749131"], ["updated_at", "2019-11-22 01:12:16.749131"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.763642"], ["last_sign_in_at", "2019-11-22 01:12:16.763642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.764233"], ["id", 424]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 424], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.774042"], ["updated_at", "2019-11-22 01:12:16.774042"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.776150"], ["updated_at", "2019-11-22 01:12:16.776150"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 387], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 424], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 424], ["room_id", 387], ["created_at", "2019-11-22 01:12:16.781254"], ["updated_at", "2019-11-22 01:12:16.781254"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 424], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 387], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 424], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 11ms (Views: 4.5ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 424], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$GUVARoLd6PTRsvnyDiWCVeGPfa2mbDkYR4tu9WwOnPzwg.86G8N1u"], ["created_at", "2019-11-22 01:12:16.819771"], ["updated_at", "2019-11-22 01:12:16.819771"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.833107"], ["last_sign_in_at", "2019-11-22 01:12:16.833107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.833664"], ["id", 425]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 425], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.3ms)
Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:16.872101"], ["updated_at", "2019-11-22 01:12:16.872101"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 388], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 425], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 425], ["room_id", 388], ["created_at", "2019-11-22 01:12:16.878525"], ["updated_at", "2019-11-22 01:12:16.878525"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 425], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 425]] Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 41ms (Views: 4.5ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/167” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"167"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 167], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 167]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 425], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$sFp3fpilFN6XJUd.T7ilxeTahA02r.q18uWCONRxRE.DeRqJKMaN."], ["created_at", "2019-11-22 01:12:16.945735"], ["updated_at", "2019-11-22 01:12:16.945735"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:16.960829"], ["last_sign_in_at", "2019-11-22 01:12:16.960829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.961460"], ["id", 426]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 426], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.972239"], ["updated_at", "2019-11-22 01:12:16.972239"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 389], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 426], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 426], ["room_id", 389], ["created_at", "2019-11-22 01:12:16.977601"], ["updated_at", "2019-11-22 01:12:16.977601"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 426], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 426]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/168” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"168"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 168], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 168]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 426], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$kvwXXJE/3FEtfZUxdlcM.uqo1w6xr9Y0Ll59olFFHCgfVkyXx8/1O"], ["created_at", "2019-11-22 01:12:17.012254"], ["updated_at", "2019-11-22 01:12:17.012254"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.027548"], ["last_sign_in_at", "2019-11-22 01:12:17.027548"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.028316"], ["id", 427]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 427], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.045934"], ["updated_at", "2019-11-22 01:12:17.045934"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 390], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 427], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 427], ["room_id", 390], ["created_at", "2019-11-22 01:12:17.051261"], ["updated_at", "2019-11-22 01:12:17.051261"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 427], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 427]] Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$pKmXpKwQ/.OiZD.wubB8qe0C1mfJSWwuGJRMo/RAQ7cGDTnqVNh1K"], ["created_at", "2019-11-22 01:12:17.072012"], ["updated_at", "2019-11-22 01:12:17.072012"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.089070"], ["last_sign_in_at", "2019-11-22 01:12:17.089070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.089574"], ["id", 428]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 428], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:17.098407"], ["updated_at", "2019-11-22 01:12:17.098407"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 391], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 428], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 428], ["room_id", 391], ["created_at", "2019-11-22 01:12:17.103314"], ["updated_at", "2019-11-22 01:12:17.103314"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 428], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 428]] Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9fthMjkdFEZj4/j6GY.G9eQ68JPMPF4W3znqkkCoyRSMmsz0fXdkO"], ["created_at", "2019-11-22 01:12:17.125393"], ["updated_at", "2019-11-22 01:12:17.125393"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.140426"], ["last_sign_in_at", "2019-11-22 01:12:17.140426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.141068"], ["id", 429]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 429], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.153878"], ["updated_at", "2019-11-22 01:12:17.153878"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.155724"], ["updated_at", "2019-11-22 01:12:17.155724"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 429], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started GET “/appointments/392” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"392"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 392], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '392')[0m
Rendered appointments/show.html.erb within layouts/application (10.1ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 429], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 30ms (Views: 12.1ms | ActiveRecord: 1.2ms) Started POST “/appointments.392” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 429], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 392], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 429], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 429], ["room_id", 392], ["created_at", "2019-11-22 01:12:17.238249"], ["updated_at", "2019-11-22 01:12:17.238249"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 429], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$NHp4G8hX1kbq1Bp0KAYoW.2yc9Oi2UBbQ/z5MLJqFH1QrGQO2kbI."], ["created_at", "2019-11-22 01:12:17.256817"], ["updated_at", "2019-11-22 01:12:17.256817"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.270589"], ["last_sign_in_at", "2019-11-22 01:12:17.270589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.271231"], ["id", 430]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 430], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.283731"], ["updated_at", "2019-11-22 01:12:17.283731"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.285540"], ["updated_at", "2019-11-22 01:12:17.285540"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 430], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/394” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"394"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 394], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '394')[0m
Rendered appointments/show.html.erb within layouts/application (1.8ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 430], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 1.1ms) Started POST “/appointments.394” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 430], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 430], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$iJqOvVhyZyi0jmOOmJM0yuJpYdp6qTF1MQWAjTkW1u2NLJTVotgn2"], ["created_at", "2019-11-22 01:12:17.340763"], ["updated_at", "2019-11-22 01:12:17.340763"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (4.4ms) Rendered users/sessions/new.html.erb within layouts/application (5.4ms)
Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.358091"], ["last_sign_in_at", "2019-11-22 01:12:17.358091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.358708"], ["id", 431]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 431], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:12:17.369464"], ["updated_at", "2019-11-22 01:12:17.369464"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 431], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 431], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/396” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"396"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 431], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 396], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 396]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 431], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ABhg3H5DL9fDdJ53SpppkeuL5TfXdfvs7EchI3hs3P3CZi1j9ZYly"], ["created_at", "2019-11-22 01:12:17.414069"], ["updated_at", "2019-11-22 01:12:17.414069"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:12:17.416842"], ["updated_at", "2019-11-22 01:12:17.416842"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.444290"], ["last_sign_in_at", "2019-11-22 01:12:17.444290"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.444887"], ["id", 432]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 432], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 432], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms/397/edit” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"397"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 432], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 397], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started PATCH “/rooms/397” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"397"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 432], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 397], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:12:17.508176"], ["id", 397]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/397 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/397” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"397"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 432], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 397], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$71mgfpzRWcQWGXRI1I.x3ODIcJnuMtMrNyObPodkFICznafB7lhsG"], ["created_at", "2019-11-22 01:12:17.548611"], ["updated_at", "2019-11-22 01:12:17.548611"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.562412"], ["last_sign_in_at", "2019-11-22 01:12:17.562412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.562981"], ["id", 433]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 433], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.575402"], ["updated_at", "2019-11-22 01:12:17.575402"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.577301"], ["updated_at", "2019-11-22 01:12:17.577301"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 433], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$T3gXC1INPYIudyvkLJ1EQ.eqyBcyVIhRw7Yah3dCvIF4PYWCQQ322"], ["created_at", "2019-11-22 01:12:17.607633"], ["updated_at", "2019-11-22 01:12:17.607633"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.625284"], ["last_sign_in_at", "2019-11-22 01:12:17.625284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.625804"], ["id", 434]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 434], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.636743"], ["updated_at", "2019-11-22 01:12:17.636743"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.638968"], ["updated_at", "2019-11-22 01:12:17.638968"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 434], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$iEaVdLRasWhb2Pcw6lXCOu63FlojL3x9msC1GsWuYL8MpmDxBln0m"], ["created_at", "2019-11-22 01:12:17.668813"], ["updated_at", "2019-11-22 01:12:17.668813"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.5ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.694198"], ["last_sign_in_at", "2019-11-22 01:12:17.694198"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.694723"], ["id", 435]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 435], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.2ms) Rendered users/registrations/new.html.erb within layouts/application (17.8ms)
Completed 200 OK in 109ms (Views: 108.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$sHDj8OznpcUzQ0YdJKI51OGu4.LE5ZHzaZMVRZoaeZHlf6wdjpEmu"], ["created_at", "2019-11-22 01:12:17.871740"], ["updated_at", "2019-11-22 01:12:17.871740"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:12:17.873388"], ["last_sign_in_at", "2019-11-22 01:12:17.873388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:12:17.873872"], ["id", 436]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 436], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$qbvsm0FkAcaV7xK7FOKnx.cDUpiZpZr/3hvf5filqVYhKGs34TTFW"], ["created_at", "2019-11-22 01:12:17.971028"], ["updated_at", "2019-11-22 01:12:17.971028"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:12:17.997935"], ["last_sign_in_at", "2019-11-22 01:12:17.997935"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.998514"], ["id", 437]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 437], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/437/edit” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"437"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 437], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.5ms) Started PUT “/users/437” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"437"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 437], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 437], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 437], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:12:18.065842"], ["id", 437]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 182ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 437], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qdzvcTFOY.ChKcgOLapeouKgwKd1ODX79AkqlRMyTK92ufn.4ZY7."], ["created_at", "2019-11-22 01:14:20.432863"], ["updated_at", "2019-11-22 01:14:20.432863"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:20 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (49.3ms) Rendered users/sessions/new.html.erb within layouts/application (9149.2ms)
Completed 200 OK in 9300ms (Views: 9293.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:29 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:29.819162"], ["last_sign_in_at", "2019-11-22 01:14:29.819162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:29.819978"], ["id", 438]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 163ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:29 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 438], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 53ms (Views: 35.2ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 438], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 438], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 70ms (Views: 42.4ms | ActiveRecord: 3.3ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 438], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:14:30.126846"], ["updated_at", "2019-11-22 01:14:30.126846"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 438], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$4yh5ZGFu9gtNM4S1S0nSNOUgeJDNBqVYDeVXWP3BK3b9lHsndcAHi"], ["created_at", "2019-11-22 01:14:30.144515"], ["updated_at", "2019-11-22 01:14:30.144515"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:30.159982"], ["last_sign_in_at", "2019-11-22 01:14:30.159982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.160544"], ["id", 439]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 439], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 439], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 439], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 439], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:14:30.195193"], ["updated_at", "2019-11-22 01:14:30.195193"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 439], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.8ms)
Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$r6rfE5UTWf0TEKxtRxv6weTH792pNTRihy50nF10kNs3J4xHGkfw2"], ["created_at", "2019-11-22 01:14:30.261437"], ["updated_at", "2019-11-22 01:14:30.261437"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:30.286012"], ["last_sign_in_at", "2019-11-22 01:14:30.286012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.286658"], ["id", 440]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 440], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GZ88AY5v1s8oNdfW42bxcuDFqEDxmOID3sTMPzdmIh5BIOXxxaLpK"], ["created_at", "2019-11-22 01:14:30.311455"], ["updated_at", "2019-11-22 01:14:30.311455"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lz.SyYOBB8EI0cTB1CKnTug/e5e/uEUZtP7iDevwUZJWcliViYXkO"], ["created_at", "2019-11-22 01:14:30.352555"], ["updated_at", "2019-11-22 01:14:30.352555"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:30.369493"], ["last_sign_in_at", "2019-11-22 01:14:30.369493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.370121"], ["id", 442]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 442], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 442], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (1.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-11-21 00:00:00"], ["appointment_date", "2019-11-21 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 442], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 71ms (Views: 39.6ms | ActiveRecord: 2.8ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ms6M3YSU6nzKPST6VIxqfO9xaESL4BoBofISnGsAHFr5vrbpQlAfC"], ["created_at", "2019-11-22 01:14:30.472056"], ["updated_at", "2019-11-22 01:14:30.472056"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.5ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:30.489173"], ["last_sign_in_at", "2019-11-22 01:14:30.489173"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.489832"], ["id", 443]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.4ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-11-22 01:14:30.529967"], ["updated_at", "2019-11-22 01:14:30.529967"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started GET “/appointments/404” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"404"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 404], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '404')[0m
Rendered appointments/show.html.erb within layouts/application (9.7ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 70ms (Views: 47.5ms | ActiveRecord: 1.5ms) Started POST “/appointments.404” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-21", "start_time"=>"18:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 404], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 443], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-21 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 443], ["room_id", 404], ["created_at", "2019-11-22 01:14:30.698718"], ["updated_at", "2019-11-22 01:14:30.698718"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 38ms (ActiveRecord: 3.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-11-21 00:00:00"], ["appointment_date", "2019-11-21 23:59:59.999999"]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 404], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 443], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (2.5ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 443], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VG47I27.vBidtO.yvhnuiOpxWpCIIcJSe4L7XvmRGPOnpDKkD2sf."], ["created_at", "2019-11-22 01:14:30.739491"], ["updated_at", "2019-11-22 01:14:30.739491"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:30.755052"], ["last_sign_in_at", "2019-11-22 01:14:30.755052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.755821"], ["id", 444]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 444], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:30.766128"], ["updated_at", "2019-11-22 01:14:30.766128"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:30.768140"], ["updated_at", "2019-11-22 01:14:30.768140"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 406], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 444], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 444], ["room_id", 406], ["created_at", "2019-11-22 01:14:30.777288"], ["updated_at", "2019-11-22 01:14:30.777288"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 444], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 406], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 444], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 23ms (Views: 5.2ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 444], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 3.9ms | ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$knZ.ngEsZkQKvEhpb4H.luzkOsa1QLyJJObG3zbGxCr0xbOmA63NG"], ["created_at", "2019-11-22 01:14:30.848428"], ["updated_at", "2019-11-22 01:14:30.848428"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:30.863701"], ["last_sign_in_at", "2019-11-22 01:14:30.863701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.864401"], ["id", 445]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 445], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:30.875542"], ["updated_at", "2019-11-22 01:14:30.875542"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:30.877486"], ["updated_at", "2019-11-22 01:14:30.877486"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 408], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 445], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 445], ["room_id", 408], ["created_at", "2019-11-22 01:14:30.883628"], ["updated_at", "2019-11-22 01:14:30.883628"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 445], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 408], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 445], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 445], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$UZDapNEoXGJZrLFfvwNyWOZ1os/iTRBaP0iU8SlUjFqRK.yffIhhG"], ["created_at", "2019-11-22 01:14:30.918216"], ["updated_at", "2019-11-22 01:14:30.918216"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:30.933079"], ["last_sign_in_at", "2019-11-22 01:14:30.933079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.933817"], ["id", 446]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 446], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:30.944468"], ["updated_at", "2019-11-22 01:14:30.944468"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:30.946589"], ["updated_at", "2019-11-22 01:14:30.946589"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 410], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 446], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 446], ["room_id", 410], ["created_at", "2019-11-22 01:14:30.952590"], ["updated_at", "2019-11-22 01:14:30.952590"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 446], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 410], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.2ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 446], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 446], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$8g3iFXNkClKhzfL9cb6U/.P3LttyBdy6ggX21ygHzOAgNpqmKyXES"], ["created_at", "2019-11-22 01:14:30.992868"], ["updated_at", "2019-11-22 01:14:30.992868"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (2.0ms) Rendered users/sessions/new.html.erb within layouts/application (3.0ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.008488"], ["last_sign_in_at", "2019-11-22 01:14:31.008488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.009086"], ["id", 447]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 447], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:31.018074"], ["updated_at", "2019-11-22 01:14:31.018074"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:31.020065"], ["updated_at", "2019-11-22 01:14:31.020065"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 412], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 447], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 447], ["room_id", 412], ["created_at", "2019-11-22 01:14:31.025673"], ["updated_at", "2019-11-22 01:14:31.025673"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 447], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 412], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 447], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 447], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9z1k1QaqKDQLpRyO4GXgxu0qHGGbWl3Y8l8O6G7wIrjvAwAYINxX6"], ["created_at", "2019-11-22 01:14:31.057378"], ["updated_at", "2019-11-22 01:14:31.057378"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.072474"], ["last_sign_in_at", "2019-11-22 01:14:31.072474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.073194"], ["id", 448]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 448], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.3ms)
Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.107415"], ["updated_at", "2019-11-22 01:14:31.107415"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 413], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 448], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 448], ["room_id", 413], ["created_at", "2019-11-22 01:14:31.113986"], ["updated_at", "2019-11-22 01:14:31.113986"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 448], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 448]] Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 37ms (Views: 4.2ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/177” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"177"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 177], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 177]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 448], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$DKcEVXzGVpG3frxumG30EuQX5srIv9d767R.Vrs/QbftqAVIfZT5O"], ["created_at", "2019-11-22 01:14:31.177035"], ["updated_at", "2019-11-22 01:14:31.177035"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.191019"], ["last_sign_in_at", "2019-11-22 01:14:31.191019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.191636"], ["id", 449]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 449], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:31.202013"], ["updated_at", "2019-11-22 01:14:31.202013"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 414], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 449], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 449], ["room_id", 414], ["created_at", "2019-11-22 01:14:31.208503"], ["updated_at", "2019-11-22 01:14:31.208503"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 449], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 449]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/178” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"178"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 178], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 178]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 449], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$V2H7ctrb94Np7l6itVV0zeWWFt.6GzD2PWGKXka9sXelXpQUYMM3G"], ["created_at", "2019-11-22 01:14:31.245798"], ["updated_at", "2019-11-22 01:14:31.245798"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.260595"], ["last_sign_in_at", "2019-11-22 01:14:31.260595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.261210"], ["id", 450]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 450], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.277348"], ["updated_at", "2019-11-22 01:14:31.277348"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 415], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 450], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 450], ["room_id", 415], ["created_at", "2019-11-22 01:14:31.284203"], ["updated_at", "2019-11-22 01:14:31.284203"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 450], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 450]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$GPO8BR09Z5/oQyeceLdm3OSjo2myqpWBb2p.Gk2boJss2N3tbAVcW"], ["created_at", "2019-11-22 01:14:31.308653"], ["updated_at", "2019-11-22 01:14:31.308653"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.324763"], ["last_sign_in_at", "2019-11-22 01:14:31.324763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.325550"], ["id", 451]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 451], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:31.339597"], ["updated_at", "2019-11-22 01:14:31.339597"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 416], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 451], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 451], ["room_id", 416], ["created_at", "2019-11-22 01:14:31.344754"], ["updated_at", "2019-11-22 01:14:31.344754"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 451], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 451]] Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$uEBnjMcDsjhpCjYlvFQBXOBzXKLnVQjXF5nzDJsNT5ycJu4HUlQV2"], ["created_at", "2019-11-22 01:14:31.366845"], ["updated_at", "2019-11-22 01:14:31.366845"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.381660"], ["last_sign_in_at", "2019-11-22 01:14:31.381660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.382150"], ["id", 452]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 452], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.393807"], ["updated_at", "2019-11-22 01:14:31.393807"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.395586"], ["updated_at", "2019-11-22 01:14:31.395586"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 452], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started GET “/appointments/417” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"417"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 417], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '417')[0m
Rendered appointments/show.html.erb within layouts/application (1.8ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 452], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 1.2ms) Started POST “/appointments.417” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 452], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 417], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 452], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 452], ["room_id", 417], ["created_at", "2019-11-22 01:14:31.435999"], ["updated_at", "2019-11-22 01:14:31.435999"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 452], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$YWHpemT0utPKNVZu/1DGsuRgrXcSjKwpqHNtKCF4c2xNHdXD3vr/m"], ["created_at", "2019-11-22 01:14:31.453157"], ["updated_at", "2019-11-22 01:14:31.453157"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.466215"], ["last_sign_in_at", "2019-11-22 01:14:31.466215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.466759"], ["id", 453]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 453], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.478986"], ["updated_at", "2019-11-22 01:14:31.478986"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.480829"], ["updated_at", "2019-11-22 01:14:31.480829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 453], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.9ms) Started GET “/appointments/419” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"419"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 419], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '419')[0m
Rendered appointments/show.html.erb within layouts/application (1.7ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 453], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 1.3ms) Started POST “/appointments.419” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 453], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 453], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$2jO2HsjMnVFjK.jqzxNs/uUTSctUQ4ytY6xIKNQJ7bT30CiKvr81y"], ["created_at", "2019-11-22 01:14:31.536546"], ["updated_at", "2019-11-22 01:14:31.536546"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.549844"], ["last_sign_in_at", "2019-11-22 01:14:31.549844"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.550401"], ["id", 454]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 454], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.4ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:14:31.561500"], ["updated_at", "2019-11-22 01:14:31.561500"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 454], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 454], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/421” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"421"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 454], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 421], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 421]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 454], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$PUonegWz0RC1mTGFTqokS.wKZQNLszuJxBhwDm23atUyjUbdZ2Nqe"], ["created_at", "2019-11-22 01:14:31.607082"], ["updated_at", "2019-11-22 01:14:31.607082"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:14:31.610614"], ["updated_at", "2019-11-22 01:14:31.610614"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.636727"], ["last_sign_in_at", "2019-11-22 01:14:31.636727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.637498"], ["id", 455]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 455], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 455], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started GET “/rooms/422/edit” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"422"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 455], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 422], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started PATCH “/rooms/422” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"422"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 455], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 422], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:14:31.701054"], ["id", 422]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/422 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/422” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"422"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 455], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 422], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1f36naFQZWlER0yoIkcG.OlQ0Oz5W2f5EmN4RE7S1tD1Bccj3Jwvq"], ["created_at", "2019-11-22 01:14:31.742060"], ["updated_at", "2019-11-22 01:14:31.742060"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.756089"], ["last_sign_in_at", "2019-11-22 01:14:31.756089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.756744"], ["id", 456]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 456], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.768742"], ["updated_at", "2019-11-22 01:14:31.768742"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.770703"], ["updated_at", "2019-11-22 01:14:31.770703"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 456], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$asUW.XBbCG8J2ZrxO4FRvu7pFRTJGzGltayoowct2Xcxxxk0VDjai"], ["created_at", "2019-11-22 01:14:31.801239"], ["updated_at", "2019-11-22 01:14:31.801239"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.815417"], ["last_sign_in_at", "2019-11-22 01:14:31.815417"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.816069"], ["id", 457]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 457], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.828085"], ["updated_at", "2019-11-22 01:14:31.828085"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.829905"], ["updated_at", "2019-11-22 01:14:31.829905"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 457], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$/FSybU9WgSHhGmdEWw45HOKOSms0tRPxxKkcL/3qF6mcBayO4yc3i"], ["created_at", "2019-11-22 01:14:31.861111"], ["updated_at", "2019-11-22 01:14:31.861111"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.3ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:31.888824"], ["last_sign_in_at", "2019-11-22 01:14:31.888824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.889488"], ["id", 458]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 458], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (17.5ms)
Completed 200 OK in 112ms (Views: 111.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$EMtruGaqOIGD1H5euDEtleI1F.LF0okEFC1B2YibLR/yp3t34RKg6"], ["created_at", "2019-11-22 01:14:32.088371"], ["updated_at", "2019-11-22 01:14:32.088371"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:14:32.090513"], ["last_sign_in_at", "2019-11-22 01:14:32.090513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:14:32.091048"], ["id", 459]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 84ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 459], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$8NqyrsLCH4RlCi8StKoLhuuQK/iep/3G5caEOjnBw4f8dfUpq.zj6"], ["created_at", "2019-11-22 01:14:32.186267"], ["updated_at", "2019-11-22 01:14:32.186267"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-11-22 01:14:32.212741"], ["last_sign_in_at", "2019-11-22 01:14:32.212741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:32.213582"], ["id", 460]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 460], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/460/edit” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"460"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 460], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.4ms) Started PUT “/users/460” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"460"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 460], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 460], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 460], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:14:32.274832"], ["id", 460]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 156ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 460], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]] [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 141ms (Views: 108.3ms | ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$PzN7xZ/Wq5.59qAEx.4i2um.bIA/HSKaKEUrDTjRKxEY6PWWPC0X."], ["created_at", "2019-11-22 01:16:37.393696"], ["updated_at", "2019-11-22 01:16:37.393696"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.396890"], ["updated_at", "2019-11-22 01:16:37.396890"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.413931"], ["last_sign_in_at", "2019-11-22 01:16:37.413931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.414650"], ["id", 461]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"427"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 427], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 461], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 461], ["room_id", 427], ["created_at", "2019-11-22 01:16:37.451016"], ["updated_at", "2019-11-22 01:16:37.451016"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 25ms (ActiveRecord: 2.3ms)
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 427], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$QdbS22ocqaey12TxAaTwEut87aROzhpr5PiZJb4ZhaHG.cSc4dkIm"], ["created_at", "2019-11-22 01:16:37.463502"], ["updated_at", "2019-11-22 01:16:37.463502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.465958"], ["updated_at", "2019-11-22 01:16:37.465958"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.468472"], ["last_sign_in_at", "2019-11-22 01:16:37.468472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.468992"], ["id", 462]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"428"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 428], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 462], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 462], ["room_id", 428], ["created_at", "2019-11-22 01:16:37.474869"], ["updated_at", "2019-11-22 01:16:37.474869"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$GlapI58HYe2A8hcN4Qx6Aufw/RCokN.wiNewDOitnkqkXw4fkPxKq"], ["created_at", "2019-11-22 01:16:37.483469"], ["updated_at", "2019-11-22 01:16:37.483469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.485614"], ["updated_at", "2019-11-22 01:16:37.485614"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.487886"], ["last_sign_in_at", "2019-11-22 01:16:37.487886"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.488483"], ["id", 463]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"429"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 429], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rxq5N0V6YYe1bKMOJJXJPuybszZM961kUB.iEyyNFw3F7BsjUDUXu"], ["created_at", "2019-11-22 01:16:37.498014"], ["updated_at", "2019-11-22 01:16:37.498014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.500271"], ["updated_at", "2019-11-22 01:16:37.500271"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.502579"], ["last_sign_in_at", "2019-11-22 01:16:37.502579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.503129"], ["id", 464]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"430"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$16vaxTaG5OXUcs..nSntd.jx840HVYR.9OqkMKZbOwGm12TcMqVTS"], ["created_at", "2019-11-22 01:16:37.512790"], ["updated_at", "2019-11-22 01:16:37.512790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.515312"], ["updated_at", "2019-11-22 01:16:37.515312"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 431], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 465], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 465], ["room_id", 431], ["created_at", "2019-11-22 01:16:37.519886"], ["updated_at", "2019-11-22 01:16:37.519886"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/431” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.522431"], ["last_sign_in_at", "2019-11-22 01:16:37.522431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.523001"], ["id", 465]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"431"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 431], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '431')[0m
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 359ms (Views: 341.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ev5thhbmL8sv4lv0Yy2R1ONeBhucGach/cTbXg458BmdpNfQKNDvW"], ["created_at", "2019-11-22 01:16:37.891651"], ["updated_at", "2019-11-22 01:16:37.891651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.893955"], ["updated_at", "2019-11-22 01:16:37.893955"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 432], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 466], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 466], ["room_id", 432], ["created_at", "2019-11-22 01:16:37.897735"], ["updated_at", "2019-11-22 01:16:37.897735"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 432], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 466], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 466], ["room_id", 432], ["created_at", "2019-11-22 01:16:37.902300"], ["updated_at", "2019-11-22 01:16:37.902300"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.904641"], ["last_sign_in_at", "2019-11-22 01:16:37.904641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.905143"], ["id", 466]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 466]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$LTBVetBdM4.X.6fSdlxU5ewbMYmSunxfbqnWgIEh/wLvM/XDEYCSO"], ["created_at", "2019-11-22 01:16:37.947911"], ["updated_at", "2019-11-22 01:16:37.947911"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.950137"], ["updated_at", "2019-11-22 01:16:37.950137"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 433], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 467], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 467], ["room_id", 433], ["created_at", "2019-11-22 01:16:37.953948"], ["updated_at", "2019-11-22 01:16:37.953948"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 433], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 467], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 467], ["room_id", 433], ["created_at", "2019-11-22 01:16:37.957981"], ["updated_at", "2019-11-22 01:16:37.957981"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.960337"], ["last_sign_in_at", "2019-11-22 01:16:37.960337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.960863"], ["id", 467]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 467]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/pdXjo3Ii9BbOaqwxLkf8u52HUpVFjE46aNNjvhImJBntMFWEUU3W"], ["created_at", "2019-11-22 01:16:37.973643"], ["updated_at", "2019-11-22 01:16:37.973643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.975876"], ["updated_at", "2019-11-22 01:16:37.975876"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 434], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 468], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 468], ["room_id", 434], ["created_at", "2019-11-22 01:16:37.979470"], ["updated_at", "2019-11-22 01:16:37.979470"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/189” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.981617"], ["last_sign_in_at", "2019-11-22 01:16:37.981617"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.982111"], ["id", 468]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"189"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 189], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 189]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nIrGgoYzSkclX27tohFokOcD/QYnr7iJGvSQZ1xMWp0D9sXrud/t."], ["created_at", "2019-11-22 01:16:37.995323"], ["updated_at", "2019-11-22 01:16:37.995323"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.997603"], ["last_sign_in_at", "2019-11-22 01:16:37.997603"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.998094"], ["id", 469]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 37ms (Views: 21.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kU.hF1nLEkEM4zhtR4xCJ.7oU4yrGUYWUrzaHtMTZmC2E9P6jhAP."], ["created_at", "2019-11-22 01:16:38.044156"], ["updated_at", "2019-11-22 01:16:38.044156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.046399"], ["updated_at", "2019-11-22 01:16:38.046399"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 435], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 470], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 470], ["room_id", 435], ["created_at", "2019-11-22 01:16:38.050224"], ["updated_at", "2019-11-22 01:16:38.050224"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 435], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 470], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 470], ["room_id", 435], ["created_at", "2019-11-22 01:16:38.054295"], ["updated_at", "2019-11-22 01:16:38.054295"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.056684"], ["last_sign_in_at", "2019-11-22 01:16:38.056684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.057179"], ["id", 470]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 435], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 470], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 470], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 17ms (Views: 4.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TX9MFew7gAf/FJmTQx.Gn.8jlHyyR4Kk5wQgqsmLy18hjz2o0Y9cW"], ["created_at", "2019-11-22 01:16:38.082950"], ["updated_at", "2019-11-22 01:16:38.082950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.085271"], ["updated_at", "2019-11-22 01:16:38.085271"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 436], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 471], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 471], ["room_id", 436], ["created_at", "2019-11-22 01:16:38.088924"], ["updated_at", "2019-11-22 01:16:38.088924"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 436], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 471], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 471], ["room_id", 436], ["created_at", "2019-11-22 01:16:38.092768"], ["updated_at", "2019-11-22 01:16:38.092768"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.095672"], ["last_sign_in_at", "2019-11-22 01:16:38.095672"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.096248"], ["id", 471]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 436], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 471], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 471], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VCh9BzJz7rplEt4mQ4QX3enDaZlO14wzCEv5T7zqNZZR9KTXp/pMC"], ["created_at", "2019-11-22 01:16:38.111977"], ["updated_at", "2019-11-22 01:16:38.111977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.115134"], ["updated_at", "2019-11-22 01:16:38.115134"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 437], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 472], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 472], ["room_id", 437], ["created_at", "2019-11-22 01:16:38.119127"], ["updated_at", "2019-11-22 01:16:38.119127"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 437], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 472], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 472], ["room_id", 437], ["created_at", "2019-11-22 01:16:38.123729"], ["updated_at", "2019-11-22 01:16:38.123729"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.126426"], ["last_sign_in_at", "2019-11-22 01:16:38.126426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.126978"], ["id", 472]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IiLhOv67yxk2y/uBo15S.uEaCGaGU4Y2aI6v1sQ20gpN84yei36NK"], ["created_at", "2019-11-22 01:16:38.137809"], ["updated_at", "2019-11-22 01:16:38.137809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.140022"], ["updated_at", "2019-11-22 01:16:38.140022"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 438], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 473], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 473], ["room_id", 438], ["created_at", "2019-11-22 01:16:38.143967"], ["updated_at", "2019-11-22 01:16:38.143967"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 438], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 473], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 473], ["room_id", 438], ["created_at", "2019-11-22 01:16:38.147844"], ["updated_at", "2019-11-22 01:16:38.147844"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.150309"], ["last_sign_in_at", "2019-11-22 01:16:38.150309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.150871"], ["id", 473]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5nL7iGdJoAAB8u/c.fnJo.3krpkHp7XRaSjAH3gxniRv6objM3vTS"], ["created_at", "2019-11-22 01:16:38.164476"], ["updated_at", "2019-11-22 01:16:38.164476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.166839"], ["last_sign_in_at", "2019-11-22 01:16:38.166839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.167304"], ["id", 474]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 66ms (Views: 49.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jr0znFdkXUyfxiNk8NpTNOSyjQV8RTBf9wkNi.LmAu/8u/OnNhiK6"], ["created_at", "2019-11-22 01:16:38.244230"], ["updated_at", "2019-11-22 01:16:38.244230"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.246733"], ["last_sign_in_at", "2019-11-22 01:16:38.246733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.247241"], ["id", 475]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jvILF2zIQwC0uG6TtaDUvOrrMWDQ6SbrSCpujoZ35/DRff/0xUsv2"], ["created_at", "2019-11-22 01:16:38.256790"], ["updated_at", "2019-11-22 01:16:38.256790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.259740"], ["last_sign_in_at", "2019-11-22 01:16:38.259740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.260274"], ["id", 476]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9CLSUwGgf3b8STQCSoBpo.nvQqKcp6Qafdk.s1n7tZNV5eYdPFkw."], ["created_at", "2019-11-22 01:16:38.290850"], ["updated_at", "2019-11-22 01:16:38.290850"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.293459"], ["last_sign_in_at", "2019-11-22 01:16:38.293459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.293974"], ["id", 477]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o49Sgf02kVlenFxN4iGWzuacN6m54CbWTNOWRngDc8/ycHgvEOumO"], ["created_at", "2019-11-22 01:16:38.313771"], ["updated_at", "2019-11-22 01:16:38.313771"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.315932"], ["updated_at", "2019-11-22 01:16:38.315932"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/439” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.318043"], ["last_sign_in_at", "2019-11-22 01:16:38.318043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.318546"], ["id", 478]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"439"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 439], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 23ms (Views: 4.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vS7l3ZZ/F5qe.fQNJS2wH.SL1ENmBJweE8VNu1gO3gVSpznYXdn92"], ["created_at", "2019-11-22 01:16:38.350159"], ["updated_at", "2019-11-22 01:16:38.350159"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.352471"], ["updated_at", "2019-11-22 01:16:38.352471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/440” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.354974"], ["last_sign_in_at", "2019-11-22 01:16:38.354974"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.355605"], ["id", 479]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"440"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 440], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.366829"], ["updated_at", "2019-11-22 01:16:38.366829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/441” for 127.0.0.1 at 2019-11-21 22:16:38 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"441"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fBxgwUV6QgprtMMTSVIYyu4JbQLcpp8oek0keIWzbWJHjBf9nKcjy"], ["created_at", "2019-11-22 01:16:38.378552"], ["updated_at", "2019-11-22 01:16:38.378552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.381389"], ["updated_at", "2019-11-22 01:16:38.381389"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/442/edit” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.384401"], ["last_sign_in_at", "2019-11-22 01:16:38.384401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.384998"], ["id", 480]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"442"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 442], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 23ms (Views: 5.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K5DZh8vXMDOx4jz1gXn..um.t/7vVbTw7Ici9ecDncVGe6fyu7n8W"], ["created_at", "2019-11-22 01:16:38.417358"], ["updated_at", "2019-11-22 01:16:38.417358"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.420223"], ["updated_at", "2019-11-22 01:16:38.420223"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/443/edit” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.422697"], ["last_sign_in_at", "2019-11-22 01:16:38.422697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.423149"], ["id", 481]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"443"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 443], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.435231"], ["updated_at", "2019-11-22 01:16:38.435231"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/444” for 127.0.0.1 at 2019-11-21 22:16:38 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"444"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZZu6N1kqVtQXhJXa3DMSCeSzGHYP7XlTJnBGiikT5q6BIB3mBEBr."], ["created_at", "2019-11-22 01:16:38.447943"], ["updated_at", "2019-11-22 01:16:38.447943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.451510"], ["last_sign_in_at", "2019-11-22 01:16:38.451510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.452308"], ["id", 482]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.456681"], ["updated_at", "2019-11-22 01:16:38.456681"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IibIe90ekGTmtYZY4AhsquE5jI1UTPrYoMoUwzRoW4EV/FijjcEMG"], ["created_at", "2019-11-22 01:16:38.465586"], ["updated_at", "2019-11-22 01:16:38.465586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.468345"], ["last_sign_in_at", "2019-11-22 01:16:38.468345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.469107"], ["id", 483]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.472851"], ["updated_at", "2019-11-22 01:16:38.472851"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qh9knYNqomu0qjqJrhfmKOQ.2gLm6XyyN5CkaCzlvPNVsuPkbgNbK"], ["created_at", "2019-11-22 01:16:38.481206"], ["updated_at", "2019-11-22 01:16:38.481206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.484334"], ["last_sign_in_at", "2019-11-22 01:16:38.484334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.484810"], ["id", 484]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/WjzU71to7LBWkIFQUH3BOv.trYgTw7cwAKJXb7hlDbK7CDl50xQO"], ["created_at", "2019-11-22 01:16:38.496771"], ["updated_at", "2019-11-22 01:16:38.496771"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.499807"], ["last_sign_in_at", "2019-11-22 01:16:38.499807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.500330"], ["id", 485]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rzZUmEinWERM3zeC23u/beYn2KqArkUM8RR5.jxd2VxHESNcuD4GS"], ["created_at", "2019-11-22 01:16:38.510845"], ["updated_at", "2019-11-22 01:16:38.510845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.513635"], ["last_sign_in_at", "2019-11-22 01:16:38.513635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.514154"], ["id", 486]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gc6hPWE/ugrfI0pjb6OOWO36oj/q/j2Rs5P3rn06JIyYMy4G0lLbS"], ["created_at", "2019-11-22 01:16:38.524154"], ["updated_at", "2019-11-22 01:16:38.524154"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.526614"], ["updated_at", "2019-11-22 01:16:38.526614"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/447” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.528922"], ["last_sign_in_at", "2019-11-22 01:16:38.528922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.529636"], ["id", 487]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"447"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 447], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 01:16:38.534555"], ["id", 447]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/447 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wEInqByFk0amS12yv4I1v.nPxYVnGcrvxb3MLpc4s1D2D1JmhHquK"], ["created_at", "2019-11-22 01:16:38.543309"], ["updated_at", "2019-11-22 01:16:38.543309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.545826"], ["updated_at", "2019-11-22 01:16:38.545826"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/448” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.549058"], ["last_sign_in_at", "2019-11-22 01:16:38.549058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.549576"], ["id", 488]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"448"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 448], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 01:16:38.556304"], ["id", 448]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/448 Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/vJDS.2z3P9ZxFUSKBtMnO0P6DfMO3MB95qz79DOCIfqc5z.Mjezm"], ["created_at", "2019-11-22 01:16:38.564729"], ["updated_at", "2019-11-22 01:16:38.564729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.566853"], ["updated_at", "2019-11-22 01:16:38.566853"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/449” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.569435"], ["last_sign_in_at", "2019-11-22 01:16:38.569435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.570088"], ["id", 489]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"449"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 449], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$veDadTeOtdHx3ICxx4vh4.AxlZ1DIpzhR40kM894/0nurYVj40sLi"], ["created_at", "2019-11-22 01:16:38.584985"], ["updated_at", "2019-11-22 01:16:38.584985"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.587592"], ["updated_at", "2019-11-22 01:16:38.587592"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/450” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.590319"], ["last_sign_in_at", "2019-11-22 01:16:38.590319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.590879"], ["id", 490]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"450"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 450], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (13.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$97NTo27R39fr.S7kmWF9a.Wp8itODRYtCrpGoiIGiOur3UR.UryDO"], ["created_at", "2019-11-22 01:16:38.620476"], ["updated_at", "2019-11-22 01:16:38.620476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.623129"], ["last_sign_in_at", "2019-11-22 01:16:38.623129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.623629"], ["id", 491]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9a0btPBHsGzGwe5jtc1k6e9Ki.zICaeWGHdWE2XLea07kG4SvVEeW"], ["created_at", "2019-11-22 01:16:38.635031"], ["updated_at", "2019-11-22 01:16:38.635031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.637149"], ["updated_at", "2019-11-22 01:16:38.637149"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/451” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.639020"], ["last_sign_in_at", "2019-11-22 01:16:38.639020"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.639624"], ["id", 492]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"451"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 451], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 451]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cAtDdV1r8FWZ0W3GwvUiMunQVWxCsIUqWoKCFInUsoAof1XKD9GTC"], ["created_at", "2019-11-22 01:16:38.653430"], ["updated_at", "2019-11-22 01:16:38.653430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.655667"], ["updated_at", "2019-11-22 01:16:38.655667"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/452” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.657571"], ["last_sign_in_at", "2019-11-22 01:16:38.657571"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.658111"], ["id", 493]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"452"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 452], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 452]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FG9Y3vusyy.iu7056AytEOeIcH1fZHeQ.4jcc3XGnH6me/74q2vtm"], ["created_at", "2019-11-22 01:16:38.670804"], ["updated_at", "2019-11-22 01:16:38.670804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.673192"], ["updated_at", "2019-11-22 01:16:38.673192"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/453” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.676119"], ["last_sign_in_at", "2019-11-22 01:16:38.676119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.676827"], ["id", 494]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"453"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iGU0QNTbGhShzol9lCoxmeO83JtyWWW4IAuZ4G2v6ZUvj0tKYBmwi"], ["created_at", "2019-11-22 01:16:38.687144"], ["updated_at", "2019-11-22 01:16:38.687144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.689363"], ["updated_at", "2019-11-22 01:16:38.689363"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/454” for 127.0.0.1 at 2019-11-21 22:16:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.691209"], ["last_sign_in_at", "2019-11-22 01:16:38.691209"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.691779"], ["id", 495]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"454"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (29.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (59.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$43K6CRaeYEMUbvq36y3jB.2Td.26o2mARQz2hXGTR0e5syo1PiLKK"], ["created_at", "2019-12-06 01:01:41.051511"], ["updated_at", "2019-12-06 01:01:41.051511"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (16.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SPoiZXsShaVD7ByJPX5x6uQ/LFKDB6iU79i6.cs/ZJBXQ7AaCJW8O"], ["created_at", "2019-12-06 01:01:42.846210"], ["updated_at", "2019-12-06 01:01:42.846210"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (14.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.854798"], ["updated_at", "2019-12-06 01:01:42.854798"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qY2mHKgYl5xjm7W3WQxQ8..LuF8j7eie4tRcncqyvR4V6ieGuZojq"], ["created_at", "2019-12-06 01:01:42.875245"], ["updated_at", "2019-12-06 01:01:42.875245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.877436"], ["updated_at", "2019-12-06 01:01:42.877436"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Mx8aAzCxaQDXxpnpnQag9ukOTWWuH1XlEBYBzfii.xVGBkhCWzdMS"], ["created_at", "2019-12-06 01:01:42.885266"], ["updated_at", "2019-12-06 01:01:42.885266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.887466"], ["updated_at", "2019-12-06 01:01:42.887466"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$na4I16X6.SdpnQWMJi23x.X6FXHm7XJIgXLOQ9HzGeD1I1tqPvWiq"], ["created_at", "2019-12-06 01:01:42.894153"], ["updated_at", "2019-12-06 01:01:42.894153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.896443"], ["updated_at", "2019-12-06 01:01:42.896443"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 164ms (Views: 110.1ms | ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$mMy.Nt1FPoFa2tjoOEVU8uKdAoGUMCcWMZfcYiSPMZyXLSao.h4HW"], ["created_at", "2019-12-06 01:01:44.183253"], ["updated_at", "2019-12-06 01:01:44.183253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.185833"], ["updated_at", "2019-12-06 01:01:44.185833"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (10.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.204450"], ["last_sign_in_at", "2019-12-06 01:01:44.204450"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.205191"], ["id", 501]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"459"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 459], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 501], ["LIMIT", 1]]
[1m[35mSQL (3.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 501], ["room_id", 459], ["created_at", "2019-12-06 01:01:44.253983"], ["updated_at", "2019-12-06 01:01:44.253983"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 30ms (ActiveRecord: 5.2ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 459], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$diQPZwZlNWKhQB7yyA4VdOlZqw/h.lj2/eau7uzxqdiMwBtKfGT3G"], ["created_at", "2019-12-06 01:01:44.275649"], ["updated_at", "2019-12-06 01:01:44.275649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.278025"], ["updated_at", "2019-12-06 01:01:44.278025"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.280603"], ["last_sign_in_at", "2019-12-06 01:01:44.280603"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.281125"], ["id", 502]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"460"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 460], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 502], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 502], ["room_id", 460], ["created_at", "2019-12-06 01:01:44.286559"], ["updated_at", "2019-12-06 01:01:44.286559"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1Vvte0yLNxyCpK2nI06LpOPe2VI5XYZ4QStyjKPx8ByWpuAA98gHu"], ["created_at", "2019-12-06 01:01:44.295040"], ["updated_at", "2019-12-06 01:01:44.295040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.297279"], ["updated_at", "2019-12-06 01:01:44.297279"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.300157"], ["last_sign_in_at", "2019-12-06 01:01:44.300157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.300724"], ["id", 503]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"461"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 461], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$wBkV899pjC/vG/x24eMHJOPAQp4Es5o3auUCinYtm/CpzNivuExrG"], ["created_at", "2019-12-06 01:01:44.310107"], ["updated_at", "2019-12-06 01:01:44.310107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.312510"], ["updated_at", "2019-12-06 01:01:44.312510"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.314841"], ["last_sign_in_at", "2019-12-06 01:01:44.314841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.315853"], ["id", 504]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"462"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$pfxSuGA6hjiKQXhTFSlzk.u7qGtVYWSTDImYEj42m8vXIpi5ItYum"], ["created_at", "2019-12-06 01:01:44.325900"], ["updated_at", "2019-12-06 01:01:44.325900"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.328091"], ["updated_at", "2019-12-06 01:01:44.328091"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 463], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 505], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 505], ["room_id", 463], ["created_at", "2019-12-06 01:01:44.332455"], ["updated_at", "2019-12-06 01:01:44.332455"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/463” for 127.0.0.1 at 2019-12-05 22:01:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.335040"], ["last_sign_in_at", "2019-12-06 01:01:44.335040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.335548"], ["id", 505]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"463"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 463], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '463')[0m
Rendered appointments/show.html.erb within layouts/application (63.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 10403ms (Views: 10385.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$4qI2l8gXqJA4FC0QvI7PuOzPt4cyV0I2S4WKM.sPT8ObqCx5uqGmq"], ["created_at", "2019-12-06 01:01:54.751355"], ["updated_at", "2019-12-06 01:01:54.751355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.753565"], ["updated_at", "2019-12-06 01:01:54.753565"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 464], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 506], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 506], ["room_id", 464], ["created_at", "2019-12-06 01:01:54.757325"], ["updated_at", "2019-12-06 01:01:54.757325"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 464], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 506], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 506], ["room_id", 464], ["created_at", "2019-12-06 01:01:54.761156"], ["updated_at", "2019-12-06 01:01:54.761156"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.763566"], ["last_sign_in_at", "2019-12-06 01:01:54.763566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.764108"], ["id", 506]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 506]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 39ms (Views: 4.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$UyKfaD.oYL7ejZF/FCB48eAZhy8vtKI9ki991/MtEQh8JP3S0QcGi"], ["created_at", "2019-12-06 01:01:54.811892"], ["updated_at", "2019-12-06 01:01:54.811892"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.814462"], ["updated_at", "2019-12-06 01:01:54.814462"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 465], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 507], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 507], ["room_id", 465], ["created_at", "2019-12-06 01:01:54.818969"], ["updated_at", "2019-12-06 01:01:54.818969"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 465], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 507], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 507], ["room_id", 465], ["created_at", "2019-12-06 01:01:54.823060"], ["updated_at", "2019-12-06 01:01:54.823060"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.825471"], ["last_sign_in_at", "2019-12-06 01:01:54.825471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.825992"], ["id", 507]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 507]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$J43/6UGIvWVf0kInrivdGe21jJ4LP2Qpc5SPYc1bCp2Sil9qUfl7q"], ["created_at", "2019-12-06 01:01:54.839620"], ["updated_at", "2019-12-06 01:01:54.839620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.841777"], ["updated_at", "2019-12-06 01:01:54.841777"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 466], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 508], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 508], ["room_id", 466], ["created_at", "2019-12-06 01:01:54.845321"], ["updated_at", "2019-12-06 01:01:54.845321"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/205” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.847467"], ["last_sign_in_at", "2019-12-06 01:01:54.847467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.847948"], ["id", 508]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"205"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 205], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 205]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ofWoit9gO5y.5GZPf2FE6ewbcROQrpbG5e5Rd5l.zjHFcCGUfzVqy"], ["created_at", "2019-12-06 01:01:54.861864"], ["updated_at", "2019-12-06 01:01:54.861864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.864153"], ["last_sign_in_at", "2019-12-06 01:01:54.864153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.864629"], ["id", 509]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 34ms (Views: 18.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WaHfWWI.GpmKhMpWxI3ez.86XJrznj3ucZ/7F4lF9w5NL1W0C.8tW"], ["created_at", "2019-12-06 01:01:54.908227"], ["updated_at", "2019-12-06 01:01:54.908227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.910396"], ["updated_at", "2019-12-06 01:01:54.910396"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 467], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 510], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 510], ["room_id", 467], ["created_at", "2019-12-06 01:01:54.914069"], ["updated_at", "2019-12-06 01:01:54.914069"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 467], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 510], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 510], ["room_id", 467], ["created_at", "2019-12-06 01:01:54.918259"], ["updated_at", "2019-12-06 01:01:54.918259"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.920649"], ["last_sign_in_at", "2019-12-06 01:01:54.920649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.921140"], ["id", 510]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 467], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 510], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 510], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HHWHjLcPiLlhPAmIrM/Yqex.xLtMkwseuelvnbUVFAYGdbJT1/5Xm"], ["created_at", "2019-12-06 01:01:54.934580"], ["updated_at", "2019-12-06 01:01:54.934580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.936757"], ["updated_at", "2019-12-06 01:01:54.936757"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 468], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 511], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 511], ["room_id", 468], ["created_at", "2019-12-06 01:01:54.940262"], ["updated_at", "2019-12-06 01:01:54.940262"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 468], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 511], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 511], ["room_id", 468], ["created_at", "2019-12-06 01:01:54.943958"], ["updated_at", "2019-12-06 01:01:54.943958"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.946228"], ["last_sign_in_at", "2019-12-06 01:01:54.946228"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.946730"], ["id", 511]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 468], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 511], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 511], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s1MsoIiw5y0kifUAqOB7b.EXGLiYWsu6nRWNljsZb1GC50QoIU3HG"], ["created_at", "2019-12-06 01:01:54.961160"], ["updated_at", "2019-12-06 01:01:54.961160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.963361"], ["updated_at", "2019-12-06 01:01:54.963361"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 469], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 512], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 512], ["room_id", 469], ["created_at", "2019-12-06 01:01:54.967535"], ["updated_at", "2019-12-06 01:01:54.967535"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 469], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 512], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 512], ["room_id", 469], ["created_at", "2019-12-06 01:01:54.971385"], ["updated_at", "2019-12-06 01:01:54.971385"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.973687"], ["last_sign_in_at", "2019-12-06 01:01:54.973687"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.974190"], ["id", 512]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WNwZijABaqOuDhvTpHTeQOrv7dqGDtislB9Pm/mmUQYrc3LWtPZVm"], ["created_at", "2019-12-06 01:01:54.985106"], ["updated_at", "2019-12-06 01:01:54.985106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.987300"], ["updated_at", "2019-12-06 01:01:54.987300"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 470], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 513], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 513], ["room_id", 470], ["created_at", "2019-12-06 01:01:54.990917"], ["updated_at", "2019-12-06 01:01:54.990917"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 470], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 513], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 513], ["room_id", 470], ["created_at", "2019-12-06 01:01:54.994701"], ["updated_at", "2019-12-06 01:01:54.994701"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.997576"], ["last_sign_in_at", "2019-12-06 01:01:54.997576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.998092"], ["id", 513]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/3wCJQ41mywTahhdsoKi4OJYvGTrvbhSvHqUavGuPy7jFu./zNKxK"], ["created_at", "2019-12-06 01:01:55.011788"], ["updated_at", "2019-12-06 01:01:55.011788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.014120"], ["last_sign_in_at", "2019-12-06 01:01:55.014120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.014626"], ["id", 514]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (10.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 65ms (Views: 48.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SfKEWBpZpxwAy6eIPI8nmOMbefEZQEa4XO7i92Ee6qYSzGJH/NVOS"], ["created_at", "2019-12-06 01:01:55.092558"], ["updated_at", "2019-12-06 01:01:55.092558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.094806"], ["last_sign_in_at", "2019-12-06 01:01:55.094806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.095335"], ["id", 515]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ndACoOPbFkWMww7mncNdjeXSWNd3G7NcpVBZRbyP4BmZBldcckNHi"], ["created_at", "2019-12-06 01:01:55.105787"], ["updated_at", "2019-12-06 01:01:55.105787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.108171"], ["last_sign_in_at", "2019-12-06 01:01:55.108171"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.108675"], ["id", 516]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oqr5HNB9XUpjCj5Rv3AR5epTvJgD3hYLWZa6ScP9/6XEzL9QWB9xi"], ["created_at", "2019-12-06 01:01:55.136386"], ["updated_at", "2019-12-06 01:01:55.136386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.138610"], ["last_sign_in_at", "2019-12-06 01:01:55.138610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.139115"], ["id", 517]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8ZTEC6sZeouOWxTizGVYtOBWlEXpLlWu8qvrEpI/EV04NS4ADfqiO"], ["created_at", "2019-12-06 01:01:55.158276"], ["updated_at", "2019-12-06 01:01:55.158276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.160402"], ["updated_at", "2019-12-06 01:01:55.160402"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/471” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.162415"], ["last_sign_in_at", "2019-12-06 01:01:55.162415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.162911"], ["id", 518]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"471"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 471], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zhIoCie.LnwqpMbiiAOeqOduMkU0APwwusAAdgE1NcYU2QOWAHEdO"], ["created_at", "2019-12-06 01:01:55.192517"], ["updated_at", "2019-12-06 01:01:55.192517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.194845"], ["updated_at", "2019-12-06 01:01:55.194845"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/472” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.196924"], ["last_sign_in_at", "2019-12-06 01:01:55.196924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.197420"], ["id", 519]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"472"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 472], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.207524"], ["updated_at", "2019-12-06 01:01:55.207524"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/473” for 127.0.0.1 at 2019-12-05 22:01:55 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"473"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xL1AeWVIaCUU8YPomip5GOd6zGL3Lc5NaoIeNAJxmMiwfraLGHMJC"], ["created_at", "2019-12-06 01:01:55.219080"], ["updated_at", "2019-12-06 01:01:55.219080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.221475"], ["updated_at", "2019-12-06 01:01:55.221475"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/474/edit” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.223556"], ["last_sign_in_at", "2019-12-06 01:01:55.223556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.224077"], ["id", 520]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"474"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 474], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 43ms (Views: 3.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lNpD2t8cnoOwCCaXJ8ZsG.0HPH0j/kQN/fPIZ3mNIT8/AXktsmc8a"], ["created_at", "2019-12-06 01:01:55.275100"], ["updated_at", "2019-12-06 01:01:55.275100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.277315"], ["updated_at", "2019-12-06 01:01:55.277315"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/475/edit” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.279337"], ["last_sign_in_at", "2019-12-06 01:01:55.279337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.279829"], ["id", 521]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"475"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 475], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.4ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.290232"], ["updated_at", "2019-12-06 01:01:55.290232"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/476” for 127.0.0.1 at 2019-12-05 22:01:55 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"476"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qnRnOuLCQy6YOxrXWX3RAOvh9J0gL7dOXLCvHB77wK8eQGixCRJ.W"], ["created_at", "2019-12-06 01:01:55.300921"], ["updated_at", "2019-12-06 01:01:55.300921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.303420"], ["last_sign_in_at", "2019-12-06 01:01:55.303420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.303907"], ["id", 522]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.307219"], ["updated_at", "2019-12-06 01:01:55.307219"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.8/LsMXY.xi6qxCbccMqMOiic580GbgRwa0vqC5JHHdlnABl.xhFm"], ["created_at", "2019-12-06 01:01:55.315708"], ["updated_at", "2019-12-06 01:01:55.315708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.318595"], ["last_sign_in_at", "2019-12-06 01:01:55.318595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.319085"], ["id", 523]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.322609"], ["updated_at", "2019-12-06 01:01:55.322609"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GbZMMhziSTSEwXb6lMyqVOOZTIV50RT9PkhnI1CoB53TiBIxsyQGy"], ["created_at", "2019-12-06 01:01:55.330891"], ["updated_at", "2019-12-06 01:01:55.330891"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.333762"], ["last_sign_in_at", "2019-12-06 01:01:55.333762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.334295"], ["id", 524]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (13.6ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 13.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9GtWlg2IgUPObROz3s746OghunM20yv270iBKRJKY7qre1QMZM.JG"], ["created_at", "2019-12-06 01:01:55.358465"], ["updated_at", "2019-12-06 01:01:55.358465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.360921"], ["last_sign_in_at", "2019-12-06 01:01:55.360921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.361400"], ["id", 525]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KV2uiBaX1ahEj4AVYtgHBOVtGAtzGgTpvaIrfXJ.14zBk1/DDo4GO"], ["created_at", "2019-12-06 01:01:55.372122"], ["updated_at", "2019-12-06 01:01:55.372122"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.375108"], ["last_sign_in_at", "2019-12-06 01:01:55.375108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.375610"], ["id", 526]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ws.hN4ARmkPRAf.8e1bfY.FbpvFT6zX62pA8BIwj2MTSYY3nRXpOK"], ["created_at", "2019-12-06 01:01:55.386488"], ["updated_at", "2019-12-06 01:01:55.386488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.388677"], ["updated_at", "2019-12-06 01:01:55.388677"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/479” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.390985"], ["last_sign_in_at", "2019-12-06 01:01:55.390985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.391508"], ["id", 527]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"479"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 479], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:01:55.395247"], ["id", 479]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/479 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b.zcXJX/IKfO1KffYsdBuOZNQpTtfhWQ6GBJB8Wy9d77wHnFN0XUq"], ["created_at", "2019-12-06 01:01:55.403542"], ["updated_at", "2019-12-06 01:01:55.403542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.405698"], ["updated_at", "2019-12-06 01:01:55.405698"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/480” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.407986"], ["last_sign_in_at", "2019-12-06 01:01:55.407986"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.408530"], ["id", 528]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"480"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 480], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:01:55.412201"], ["id", 480]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/480 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uWYYoAyCcXcrLBHslG7l..N..roxV.eK09mPPLTDroyQMYYMCb.QW"], ["created_at", "2019-12-06 01:01:55.420798"], ["updated_at", "2019-12-06 01:01:55.420798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.422970"], ["updated_at", "2019-12-06 01:01:55.422970"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/481” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.425136"], ["last_sign_in_at", "2019-12-06 01:01:55.425136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.425648"], ["id", 529]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"481"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 481], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SLZxWqnv/a8yowb86OZEw.ME0WArqNJcrP11eALhzGtE5OR928MwK"], ["created_at", "2019-12-06 01:01:55.439427"], ["updated_at", "2019-12-06 01:01:55.439427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.441669"], ["updated_at", "2019-12-06 01:01:55.441669"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/482” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.443831"], ["last_sign_in_at", "2019-12-06 01:01:55.443831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.444337"], ["id", 530]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"482"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 482], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VZ4tmK6TFqLw34Vu5hYd.eHvOLPOHC0brm751FACxehXTmOfVGURO"], ["created_at", "2019-12-06 01:01:55.458699"], ["updated_at", "2019-12-06 01:01:55.458699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.461247"], ["last_sign_in_at", "2019-12-06 01:01:55.461247"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.461742"], ["id", 531]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PJrFsucZKtqXON/Y6oEIruOeFWa31HV5oUVuhnkweAbfPpX95SsdG"], ["created_at", "2019-12-06 01:01:55.472442"], ["updated_at", "2019-12-06 01:01:55.472442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.474559"], ["updated_at", "2019-12-06 01:01:55.474559"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/483” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.476384"], ["last_sign_in_at", "2019-12-06 01:01:55.476384"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.476860"], ["id", 532]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"483"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 483], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 483]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z2PiLL3gC1tK0uT8uZUIre9.Na3tI8pPX/P2lCNHv.xrtRy0Tl27i"], ["created_at", "2019-12-06 01:01:55.488233"], ["updated_at", "2019-12-06 01:01:55.488233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.490399"], ["updated_at", "2019-12-06 01:01:55.490399"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/484” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.492238"], ["last_sign_in_at", "2019-12-06 01:01:55.492238"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.492715"], ["id", 533]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"484"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 484], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 484]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2MXBxwMk62KVEef6Uj48XeGKNgR24D/c4VcL5LcrxCqqZuBs5iF3y"], ["created_at", "2019-12-06 01:01:55.504576"], ["updated_at", "2019-12-06 01:01:55.504576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.506684"], ["updated_at", "2019-12-06 01:01:55.506684"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/485” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.508431"], ["last_sign_in_at", "2019-12-06 01:01:55.508431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.508888"], ["id", 534]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"485"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$43SpFSfZkye0T0fhrIVi4ueX7OccBnjzNBabNOftMaTeHeh4/oLli"], ["created_at", "2019-12-06 01:01:55.518039"], ["updated_at", "2019-12-06 01:01:55.518039"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.520179"], ["updated_at", "2019-12-06 01:01:55.520179"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/486” for 127.0.0.1 at 2019-12-05 22:01:55 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.521954"], ["last_sign_in_at", "2019-12-06 01:01:55.521954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.522444"], ["id", 535]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"486"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$a3AnbpvlJEHEFSkctD7W2.Cz.zXGLwblRFYvzWK6WFi1YLS6zQNFS"], ["created_at", "2019-12-06 01:04:29.772034"], ["updated_at", "2019-12-06 01:04:29.772034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HJpDv.Yi1Vdh9Esj3TO9bOg6vc6dVLYD7ph97mLQTBFWpDTJmDmZi"], ["created_at", "2019-12-06 01:04:29.780438"], ["updated_at", "2019-12-06 01:04:29.780438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.788985"], ["updated_at", "2019-12-06 01:04:29.788985"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q0pc/3jqhPdpZdtZlqs4QOdE9IJ8Jk3mzIAsCUbjiDt3lWKgpNs4."], ["created_at", "2019-12-06 01:04:29.796133"], ["updated_at", "2019-12-06 01:04:29.796133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.798441"], ["updated_at", "2019-12-06 01:04:29.798441"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$p8Px7yCMkFJ3qFNQyRzK8.iPd5DymIJxLI.kh/n8dfvr/MkVJWp9G"], ["created_at", "2019-12-06 01:04:29.806613"], ["updated_at", "2019-12-06 01:04:29.806613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.808962"], ["updated_at", "2019-12-06 01:04:29.808962"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$QdS9CYPeBGAzF9OOKTxDc.0v0XsAqdUIvLEOvfE/57jtM7VvKAdfS"], ["created_at", "2019-12-06 01:04:29.815689"], ["updated_at", "2019-12-06 01:04:29.815689"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.817940"], ["updated_at", "2019-12-06 01:04:29.817940"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 139ms (Views: 107.1ms | ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HUOp5EtzF8750pvqmA3ZE.nQiZEfGJv2fvJpyhld1qCYulCvaQ3vi"], ["created_at", "2019-12-06 01:04:30.438803"], ["updated_at", "2019-12-06 01:04:30.438803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.440938"], ["updated_at", "2019-12-06 01:04:30.440938"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.456620"], ["last_sign_in_at", "2019-12-06 01:04:30.456620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.457216"], ["id", 541]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"491"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 491], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 541], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 541], ["room_id", 491], ["created_at", "2019-12-06 01:04:30.492314"], ["updated_at", "2019-12-06 01:04:30.492314"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 1.9ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 491], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$W9TM6BDKznJyGGdDFWFk6evQtxqOV0NlRfOfJD1EppljYuF6RYZ4a"], ["created_at", "2019-12-06 01:04:30.501336"], ["updated_at", "2019-12-06 01:04:30.501336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.503484"], ["updated_at", "2019-12-06 01:04:30.503484"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.505878"], ["last_sign_in_at", "2019-12-06 01:04:30.505878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.506357"], ["id", 542]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"492"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 492], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 542], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 542], ["room_id", 492], ["created_at", "2019-12-06 01:04:30.511089"], ["updated_at", "2019-12-06 01:04:30.511089"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SvlwLB9a2Kj0KTH0UHI/7OnOGQgHMJ6iE3rbIJ14BVh8GlBj2Y18u"], ["created_at", "2019-12-06 01:04:30.518666"], ["updated_at", "2019-12-06 01:04:30.518666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.521143"], ["updated_at", "2019-12-06 01:04:30.521143"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.523449"], ["last_sign_in_at", "2019-12-06 01:04:30.523449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.523952"], ["id", 543]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"493"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 493], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$4nuzAGKq5JWQhlDb9J/zBuzTLKbjXsoaDyuoILDZSk92SlH9EdqSm"], ["created_at", "2019-12-06 01:04:30.532331"], ["updated_at", "2019-12-06 01:04:30.532331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.534414"], ["updated_at", "2019-12-06 01:04:30.534414"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.536661"], ["last_sign_in_at", "2019-12-06 01:04:30.536661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.537248"], ["id", 544]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"494"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$e/l6FGWNMTlAmcIX8TxPweRSW6Rq7Aac5bUKYABO2Hjh1E11hDd7G"], ["created_at", "2019-12-06 01:04:30.547832"], ["updated_at", "2019-12-06 01:04:30.547832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.550055"], ["updated_at", "2019-12-06 01:04:30.550055"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 495], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 545], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 545], ["room_id", 495], ["created_at", "2019-12-06 01:04:30.554200"], ["updated_at", "2019-12-06 01:04:30.554200"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/495” for 127.0.0.1 at 2019-12-05 22:04:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.556817"], ["last_sign_in_at", "2019-12-06 01:04:30.556817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.557341"], ["id", 545]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"495"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 495], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '495')[0m
Rendered appointments/show.html.erb within layouts/application (21.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 347ms (Views: 329.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fu5IbJAMkIgBqeDGbIma5ex4CdPN00Tx3lVh2FnIbiGIbFadiwN.C"], ["created_at", "2019-12-06 01:04:30.913987"], ["updated_at", "2019-12-06 01:04:30.913987"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.916124"], ["updated_at", "2019-12-06 01:04:30.916124"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 496], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 546], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 546], ["room_id", 496], ["created_at", "2019-12-06 01:04:30.920437"], ["updated_at", "2019-12-06 01:04:30.920437"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 496], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 546], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 546], ["room_id", 496], ["created_at", "2019-12-06 01:04:30.924869"], ["updated_at", "2019-12-06 01:04:30.924869"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.927225"], ["last_sign_in_at", "2019-12-06 01:04:30.927225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.927798"], ["id", 546]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 546]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 36ms (Views: 4.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ghbPYJRbD9INDJbJmjV4OeWu7xqiakk0HWCrFpKSpJ.56I6FK6L7u"], ["created_at", "2019-12-06 01:04:30.972190"], ["updated_at", "2019-12-06 01:04:30.972190"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.974420"], ["updated_at", "2019-12-06 01:04:30.974420"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 497], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 547], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 547], ["room_id", 497], ["created_at", "2019-12-06 01:04:30.978463"], ["updated_at", "2019-12-06 01:04:30.978463"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 497], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 547], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 547], ["room_id", 497], ["created_at", "2019-12-06 01:04:30.982442"], ["updated_at", "2019-12-06 01:04:30.982442"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.984852"], ["last_sign_in_at", "2019-12-06 01:04:30.984852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.985362"], ["id", 547]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 547]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$i2hkPIQDvyLdRVHJaV9aIu1Z8xere5VFapGNlxpsXxx1tckmdCp2e"], ["created_at", "2019-12-06 01:04:30.999032"], ["updated_at", "2019-12-06 01:04:30.999032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.001185"], ["updated_at", "2019-12-06 01:04:31.001185"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 498], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 548], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 548], ["room_id", 498], ["created_at", "2019-12-06 01:04:31.005503"], ["updated_at", "2019-12-06 01:04:31.005503"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/221” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.007700"], ["last_sign_in_at", "2019-12-06 01:04:31.007700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.008217"], ["id", 548]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"221"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 221], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 221]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PjLWp6T.yYbaMEXKAEXnd.6DxR0SeDsUjwx5JxX.rjjrNDDe7bCO."], ["created_at", "2019-12-06 01:04:31.022266"], ["updated_at", "2019-12-06 01:04:31.022266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.036990"], ["last_sign_in_at", "2019-12-06 01:04:31.036990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.037718"], ["id", 549]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CSvE9.SNcWuaKSOPjSPboO9I5JNbjr1ldkvoszEOr5EQFz6F9fFAi"], ["created_at", "2019-12-06 01:04:31.081403"], ["updated_at", "2019-12-06 01:04:31.081403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.083590"], ["updated_at", "2019-12-06 01:04:31.083590"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 499], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 550], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 550], ["room_id", 499], ["created_at", "2019-12-06 01:04:31.087691"], ["updated_at", "2019-12-06 01:04:31.087691"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 499], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 550], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 550], ["room_id", 499], ["created_at", "2019-12-06 01:04:31.091660"], ["updated_at", "2019-12-06 01:04:31.091660"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.094060"], ["last_sign_in_at", "2019-12-06 01:04:31.094060"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.094715"], ["id", 550]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 499], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 550], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 550], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NpUCtfIYbdrsfuZfV0HBNuSr16lX4jgYWwnYSI7o5I38hNtTiIoWy"], ["created_at", "2019-12-06 01:04:31.109103"], ["updated_at", "2019-12-06 01:04:31.109103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.111489"], ["updated_at", "2019-12-06 01:04:31.111489"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 500], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 551], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 551], ["room_id", 500], ["created_at", "2019-12-06 01:04:31.115605"], ["updated_at", "2019-12-06 01:04:31.115605"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 500], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 551], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 551], ["room_id", 500], ["created_at", "2019-12-06 01:04:31.120389"], ["updated_at", "2019-12-06 01:04:31.120389"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.122904"], ["last_sign_in_at", "2019-12-06 01:04:31.122904"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.123472"], ["id", 551]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 500], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 551], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 551], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9ED5fV/BaVH/3vRfHgQbSe8ffZas30rb6dqU.az3Hx7GLjkQJpll6"], ["created_at", "2019-12-06 01:04:31.139540"], ["updated_at", "2019-12-06 01:04:31.139540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.141951"], ["updated_at", "2019-12-06 01:04:31.141951"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 501], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 552], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 552], ["room_id", 501], ["created_at", "2019-12-06 01:04:31.146457"], ["updated_at", "2019-12-06 01:04:31.146457"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 501], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 552], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 552], ["room_id", 501], ["created_at", "2019-12-06 01:04:31.150274"], ["updated_at", "2019-12-06 01:04:31.150274"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.152577"], ["last_sign_in_at", "2019-12-06 01:04:31.152577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.153140"], ["id", 552]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wgq6qR88xElLAf3TbjJbtuUhf5Z2tUGif1XSbfGOiz45qjPwxZBaC"], ["created_at", "2019-12-06 01:04:31.164954"], ["updated_at", "2019-12-06 01:04:31.164954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.167417"], ["updated_at", "2019-12-06 01:04:31.167417"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 502], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 553], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 553], ["room_id", 502], ["created_at", "2019-12-06 01:04:31.172274"], ["updated_at", "2019-12-06 01:04:31.172274"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 502], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 553], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 553], ["room_id", 502], ["created_at", "2019-12-06 01:04:31.176343"], ["updated_at", "2019-12-06 01:04:31.176343"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.178706"], ["last_sign_in_at", "2019-12-06 01:04:31.178706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.179219"], ["id", 553]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aku1X0PjYLuzkrp9FPt.lOdIHGFqPvkeLRJxGIW1h2ZpgBEBztJfe"], ["created_at", "2019-12-06 01:04:31.193518"], ["updated_at", "2019-12-06 01:04:31.193518"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.195949"], ["last_sign_in_at", "2019-12-06 01:04:31.195949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.196506"], ["id", 554]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 63ms (Views: 47.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eqzK3vuADV7TYkDg8DR4T.u1/1YDB8uookpXHQ/quXC3wkxbIP5da"], ["created_at", "2019-12-06 01:04:31.271852"], ["updated_at", "2019-12-06 01:04:31.271852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.274227"], ["last_sign_in_at", "2019-12-06 01:04:31.274227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.274793"], ["id", 555]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TJ6JJX8Kv/IOWDi73NYe6.Ii9Nev1I6y.bQngGBx82A7F.8WDhs02"], ["created_at", "2019-12-06 01:04:31.285186"], ["updated_at", "2019-12-06 01:04:31.285186"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.288050"], ["last_sign_in_at", "2019-12-06 01:04:31.288050"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.288654"], ["id", 556]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/2b4tstPq2Aq1Wi/7oa.ROnz3UPTuUXW52o76KoTC5na9BUda898O"], ["created_at", "2019-12-06 01:04:31.316843"], ["updated_at", "2019-12-06 01:04:31.316843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.319325"], ["last_sign_in_at", "2019-12-06 01:04:31.319325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.320016"], ["id", 557]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BZwF0Mv.Slznk/6KDz0Iju1G0VGkN4neZ2MQXw7D8/sw67iCnSFgq"], ["created_at", "2019-12-06 01:04:31.344467"], ["updated_at", "2019-12-06 01:04:31.344467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.347168"], ["updated_at", "2019-12-06 01:04:31.347168"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/503” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.349879"], ["last_sign_in_at", "2019-12-06 01:04:31.349879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.350420"], ["id", 558]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"503"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 503], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QyOghF3h0QtT8d3BTU1ByuH5bjJDyXkCdKOAbDYp8doRSxNDsMKlW"], ["created_at", "2019-12-06 01:04:31.380013"], ["updated_at", "2019-12-06 01:04:31.380013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.383162"], ["updated_at", "2019-12-06 01:04:31.383162"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/504” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.385918"], ["last_sign_in_at", "2019-12-06 01:04:31.385918"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.386445"], ["id", 559]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"504"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 504], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (3.0ms)
Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.430923"], ["updated_at", "2019-12-06 01:04:31.430923"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/505” for 127.0.0.1 at 2019-12-05 22:04:31 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"505"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RtEsS5m0bR3WslkVC9ncb.ewsEflDdAidueWuTK.Hv4Ucdv6d/9/a"], ["created_at", "2019-12-06 01:04:31.442084"], ["updated_at", "2019-12-06 01:04:31.442084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.444558"], ["updated_at", "2019-12-06 01:04:31.444558"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/506/edit” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.446734"], ["last_sign_in_at", "2019-12-06 01:04:31.446734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.447491"], ["id", 560]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"506"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 506], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6m.gpcuQHaE29rkK.Wh6YO1uQlYvBcUbMlX/Z8oq/d0awFKDHzc5u"], ["created_at", "2019-12-06 01:04:31.477981"], ["updated_at", "2019-12-06 01:04:31.477981"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.480566"], ["updated_at", "2019-12-06 01:04:31.480566"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/507/edit” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.482945"], ["last_sign_in_at", "2019-12-06 01:04:31.482945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.483516"], ["id", 561]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"507"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 507], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.496242"], ["updated_at", "2019-12-06 01:04:31.496242"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/508” for 127.0.0.1 at 2019-12-05 22:04:31 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"508"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cx8f3Mo2W9a0hQn2X6POyunDvl9hqfBkcOsgBSM5ZB5wH2KkiIWoy"], ["created_at", "2019-12-06 01:04:31.508283"], ["updated_at", "2019-12-06 01:04:31.508283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.511708"], ["last_sign_in_at", "2019-12-06 01:04:31.511708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.512391"], ["id", 562]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.516245"], ["updated_at", "2019-12-06 01:04:31.516245"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$c1mJT4j1QrDGJZu03EwCFudHXAazkZ8uHnI8LSWlxp3TiB94gq/WO"], ["created_at", "2019-12-06 01:04:31.526436"], ["updated_at", "2019-12-06 01:04:31.526436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.529327"], ["last_sign_in_at", "2019-12-06 01:04:31.529327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.529796"], ["id", 563]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.533583"], ["updated_at", "2019-12-06 01:04:31.533583"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3LRnTU.whBA3gegdwETjTuM6pUQPwPDc6nI.nAaPEhDM.NrfArGCK"], ["created_at", "2019-12-06 01:04:31.542727"], ["updated_at", "2019-12-06 01:04:31.542727"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.545713"], ["last_sign_in_at", "2019-12-06 01:04:31.545713"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.546186"], ["id", 564]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ZRTnHmq7AeCGi0/H0FH3Ojc1kBhoyObaGnz.6XCAbStBkYUSDYnW"], ["created_at", "2019-12-06 01:04:31.557668"], ["updated_at", "2019-12-06 01:04:31.557668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.561031"], ["last_sign_in_at", "2019-12-06 01:04:31.561031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.561611"], ["id", 565]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fLnf/NZazJlzpPu5rQA6IOD0CTlPqPHRPq.ypsO0W3Lw/c8YmemIm"], ["created_at", "2019-12-06 01:04:31.574661"], ["updated_at", "2019-12-06 01:04:31.574661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.577519"], ["last_sign_in_at", "2019-12-06 01:04:31.577519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.578244"], ["id", 566]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$puDq9STt4xeH0wNMFvVEZOoii.UL/Undw4Vi0maVpW9M4CsFakF2e"], ["created_at", "2019-12-06 01:04:31.589346"], ["updated_at", "2019-12-06 01:04:31.589346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.591868"], ["updated_at", "2019-12-06 01:04:31.591868"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/511” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.594673"], ["last_sign_in_at", "2019-12-06 01:04:31.594673"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.595182"], ["id", 567]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"511"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 511], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:04:31.599626"], ["id", 511]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/511 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$60CKpiPxj0i5XSQT5lkH6OqYSxZiNdylYBLC1jaMI5yy2WwiZwFzK"], ["created_at", "2019-12-06 01:04:31.616901"], ["updated_at", "2019-12-06 01:04:31.616901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.619246"], ["updated_at", "2019-12-06 01:04:31.619246"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/512” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.622125"], ["last_sign_in_at", "2019-12-06 01:04:31.622125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.622724"], ["id", 568]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"512"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 512], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:04:31.626685"], ["id", 512]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/512 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cgs.N0bHPVR7/ipGIL5VzeBOSCH0YVwK/UvMyNRDbCAqP10CMgSgC"], ["created_at", "2019-12-06 01:04:31.635193"], ["updated_at", "2019-12-06 01:04:31.635193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.638134"], ["updated_at", "2019-12-06 01:04:31.638134"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/513” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.640692"], ["last_sign_in_at", "2019-12-06 01:04:31.640692"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.641206"], ["id", 569]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"513"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 513], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zjiFoAm/f82bbnO9A0Kpr.Bn2tO6L7VRpx6sZdmiqP5G4JP/nf.I2"], ["created_at", "2019-12-06 01:04:31.655744"], ["updated_at", "2019-12-06 01:04:31.655744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.657931"], ["updated_at", "2019-12-06 01:04:31.657931"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/514” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.660177"], ["last_sign_in_at", "2019-12-06 01:04:31.660177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.660717"], ["id", 570]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"514"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 514], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pbRvHIX0Iv0vG65cIpIE/e5Mvtp5R5avAzwBPuJg4KrToiBn2mhLG"], ["created_at", "2019-12-06 01:04:31.674810"], ["updated_at", "2019-12-06 01:04:31.674810"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.677391"], ["last_sign_in_at", "2019-12-06 01:04:31.677391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.677901"], ["id", 571]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uq2lXCRit9bADiojRnQaaOHij3gwBLXHTrNj7JGxwh0Pflth8KPFq"], ["created_at", "2019-12-06 01:04:31.688558"], ["updated_at", "2019-12-06 01:04:31.688558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.690810"], ["updated_at", "2019-12-06 01:04:31.690810"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/515” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.692674"], ["last_sign_in_at", "2019-12-06 01:04:31.692674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.693184"], ["id", 572]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"515"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 515], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 515]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9zOJajV9JN1gZJ3iYp.b0OaZhSgrAs3FZidiMW9UydqWN1Ubuadri"], ["created_at", "2019-12-06 01:04:31.704529"], ["updated_at", "2019-12-06 01:04:31.704529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.706917"], ["updated_at", "2019-12-06 01:04:31.706917"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/516” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.709003"], ["last_sign_in_at", "2019-12-06 01:04:31.709003"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.709561"], ["id", 573]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"516"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 516], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 516]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a2aNXs.m6e45RneF4l5kE.9NCEkvW2SAvOPM0Oaz0FGHk6D.Hm9Ai"], ["created_at", "2019-12-06 01:04:31.720992"], ["updated_at", "2019-12-06 01:04:31.720992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.723306"], ["updated_at", "2019-12-06 01:04:31.723306"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/517” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.725186"], ["last_sign_in_at", "2019-12-06 01:04:31.725186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.725662"], ["id", 574]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"517"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WEzZsOtzsQM4xKrwTLuGCeqH8SpV4crl9LdxN87AaGoB79ZoRjpIO"], ["created_at", "2019-12-06 01:04:31.734878"], ["updated_at", "2019-12-06 01:04:31.734878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.738115"], ["updated_at", "2019-12-06 01:04:31.738115"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/518” for 127.0.0.1 at 2019-12-05 22:04:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.741057"], ["last_sign_in_at", "2019-12-06 01:04:31.741057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.741593"], ["id", 575]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"518"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.456900"], ["updated_at", "2019-12-06 01:08:52.456900"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TMzIVA3CQU8Snj8GWN1wN.uOLAd97vAJYjoj3ZRX/W9BcarnMSuiC"], ["created_at", "2019-12-06 01:08:52.506342"], ["updated_at", "2019-12-06 01:08:52.506342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.513641"], ["updated_at", "2019-12-06 01:08:52.513641"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$LzF9WlpYw6Ochl.5oHwmLO3zfn9AJ4n9hPQMUbxoskvs/rNrpGb2u"], ["created_at", "2019-12-06 01:08:52.518149"], ["updated_at", "2019-12-06 01:08:52.518149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.522985"], ["updated_at", "2019-12-06 01:08:52.522985"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sBMRKtCyT/IiclwGJSFE5.Eya.fi6BBnD8b8siAqZ1ijLxsBHefii"], ["created_at", "2019-12-06 01:08:52.527070"], ["updated_at", "2019-12-06 01:08:52.527070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.533374"], ["updated_at", "2019-12-06 01:08:52.533374"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$eYd49m6zkjdQ/R6BruWByejc3C1qi33z8Ypb2g4ebSvbS3cL80a5C"], ["created_at", "2019-12-06 01:08:52.537340"], ["updated_at", "2019-12-06 01:08:52.537340"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.542022"], ["updated_at", "2019-12-06 01:08:52.542022"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ckaXt9KZBr9c8wtIjbm1Ourdwb.J5QDGqAjE2E.Q5i7hJcyYqvMGK"], ["created_at", "2019-12-06 01:08:52.546436"], ["updated_at", "2019-12-06 01:08:52.546436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 140ms (Views: 107.6ms | ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$A1c5izznOo3w.Ll3ONVi/.O.wscXJRiU3BMBZIFTECuMfserXZDQa"], ["created_at", "2019-12-06 01:08:53.159326"], ["updated_at", "2019-12-06 01:08:53.159326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.161477"], ["updated_at", "2019-12-06 01:08:53.161477"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.177777"], ["last_sign_in_at", "2019-12-06 01:08:53.177777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.178483"], ["id", 581]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"524"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 524], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 581], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 581], ["room_id", 524], ["created_at", "2019-12-06 01:08:53.213863"], ["updated_at", "2019-12-06 01:08:53.213863"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 1.9ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 524], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.5Tnqi6OhYay9Hk5JLnYmOPOH8ilZojQzWo/fD5CfBaqoxQ.t688G"], ["created_at", "2019-12-06 01:08:53.222908"], ["updated_at", "2019-12-06 01:08:53.222908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.224897"], ["updated_at", "2019-12-06 01:08:53.224897"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.226953"], ["last_sign_in_at", "2019-12-06 01:08:53.226953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.227464"], ["id", 582]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"525"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 525], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 582], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 582], ["room_id", 525], ["created_at", "2019-12-06 01:08:53.232271"], ["updated_at", "2019-12-06 01:08:53.232271"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xtvsnYHWXsiZlatiPJCBje6FOwrkLGMEG8cnr3f9.wc6xL/fZ/zsS"], ["created_at", "2019-12-06 01:08:53.240077"], ["updated_at", "2019-12-06 01:08:53.240077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.242279"], ["updated_at", "2019-12-06 01:08:53.242279"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.244705"], ["last_sign_in_at", "2019-12-06 01:08:53.244705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.245295"], ["id", 583]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"526"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 526], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$pDtiRrtp1miqbCmeDIUrGuZgHX0nA7UbBcpPkqKdqibk7xgL1Jp9W"], ["created_at", "2019-12-06 01:08:53.254773"], ["updated_at", "2019-12-06 01:08:53.254773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.257119"], ["updated_at", "2019-12-06 01:08:53.257119"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.259619"], ["last_sign_in_at", "2019-12-06 01:08:53.259619"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.260155"], ["id", 584]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"527"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ix5FW4QH3tHlvm1Tn87X8.S8st6cuMh.w2Ug1zcBh5yYl9MVUnbYq"], ["created_at", "2019-12-06 01:08:53.270856"], ["updated_at", "2019-12-06 01:08:53.270856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.272740"], ["updated_at", "2019-12-06 01:08:53.272740"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 528], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 585], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 585], ["room_id", 528], ["created_at", "2019-12-06 01:08:53.276079"], ["updated_at", "2019-12-06 01:08:53.276079"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/528” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.278358"], ["last_sign_in_at", "2019-12-06 01:08:53.278358"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.279059"], ["id", 585]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"528"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 528], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '528')[0m
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 345ms (Views: 327.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fr/Cb0UvyMCYNhW13jCB7uJEAMbOdkv5/ZuMvYXRu8iNyU5Zn53hu"], ["created_at", "2019-12-06 01:08:53.633583"], ["updated_at", "2019-12-06 01:08:53.633583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.635550"], ["updated_at", "2019-12-06 01:08:53.635550"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 529], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 586], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 586], ["room_id", 529], ["created_at", "2019-12-06 01:08:53.639240"], ["updated_at", "2019-12-06 01:08:53.639240"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 529], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 586], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 586], ["room_id", 529], ["created_at", "2019-12-06 01:08:53.642726"], ["updated_at", "2019-12-06 01:08:53.642726"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.644954"], ["last_sign_in_at", "2019-12-06 01:08:53.644954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.645814"], ["id", 586]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 586]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 36ms (Views: 4.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$CdKTBGAniQhPIiVjgsCv6eMvxeRL0lV.xnipnv3.75sCSSqAYjC7W"], ["created_at", "2019-12-06 01:08:53.689764"], ["updated_at", "2019-12-06 01:08:53.689764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.692072"], ["updated_at", "2019-12-06 01:08:53.692072"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 530], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 587], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 587], ["room_id", 530], ["created_at", "2019-12-06 01:08:53.696516"], ["updated_at", "2019-12-06 01:08:53.696516"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 530], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 587], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 587], ["room_id", 530], ["created_at", "2019-12-06 01:08:53.700360"], ["updated_at", "2019-12-06 01:08:53.700360"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.702696"], ["last_sign_in_at", "2019-12-06 01:08:53.702696"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.703256"], ["id", 587]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 587]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$8nB5qqFKA/XeB/Qrm3vJau9KHoUFfKeN18fRc0SRmoTNNmhX1Jro."], ["created_at", "2019-12-06 01:08:53.716302"], ["updated_at", "2019-12-06 01:08:53.716302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.718626"], ["updated_at", "2019-12-06 01:08:53.718626"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 531], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 588], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 588], ["room_id", 531], ["created_at", "2019-12-06 01:08:53.722484"], ["updated_at", "2019-12-06 01:08:53.722484"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/237” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.724693"], ["last_sign_in_at", "2019-12-06 01:08:53.724693"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.725171"], ["id", 588]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"237"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 237], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 237]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (12.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U7WLcnR2R16pmhi44kyKCuvup.10VI9eBnhyd9VuLZFfhcNCD6m7K"], ["created_at", "2019-12-06 01:08:53.751686"], ["updated_at", "2019-12-06 01:08:53.751686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.754045"], ["last_sign_in_at", "2019-12-06 01:08:53.754045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.754502"], ["id", 589]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RgbRwmz/d4GfQk6pUzF.zOouOp98aeBqXZaeec4AUtkwEBoiUl1KK"], ["created_at", "2019-12-06 01:08:53.797405"], ["updated_at", "2019-12-06 01:08:53.797405"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.799578"], ["updated_at", "2019-12-06 01:08:53.799578"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 532], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 590], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 590], ["room_id", 532], ["created_at", "2019-12-06 01:08:53.803296"], ["updated_at", "2019-12-06 01:08:53.803296"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 532], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 590], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 590], ["room_id", 532], ["created_at", "2019-12-06 01:08:53.807287"], ["updated_at", "2019-12-06 01:08:53.807287"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.809479"], ["last_sign_in_at", "2019-12-06 01:08:53.809479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.809964"], ["id", 590]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 532], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 590], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 590], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D8S.6fDu.k.w9p.zLUY6dOeQEAWq69NXNOAgWZbuenDUB5y5Y0P7q"], ["created_at", "2019-12-06 01:08:53.823024"], ["updated_at", "2019-12-06 01:08:53.823024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.825158"], ["updated_at", "2019-12-06 01:08:53.825158"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 533], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 591], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 591], ["room_id", 533], ["created_at", "2019-12-06 01:08:53.829023"], ["updated_at", "2019-12-06 01:08:53.829023"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 533], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 591], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 591], ["room_id", 533], ["created_at", "2019-12-06 01:08:53.832951"], ["updated_at", "2019-12-06 01:08:53.832951"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.835229"], ["last_sign_in_at", "2019-12-06 01:08:53.835229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.835747"], ["id", 591]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 533], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 591], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 591], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oNNJzUTkmcp5YWkrqG88Q.VYwBJ3DIGds8f2yFfB8QHETV2zf/0ni"], ["created_at", "2019-12-06 01:08:53.850301"], ["updated_at", "2019-12-06 01:08:53.850301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.852521"], ["updated_at", "2019-12-06 01:08:53.852521"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 534], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 592], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 592], ["room_id", 534], ["created_at", "2019-12-06 01:08:53.856267"], ["updated_at", "2019-12-06 01:08:53.856267"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 534], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 592], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 592], ["room_id", 534], ["created_at", "2019-12-06 01:08:53.860200"], ["updated_at", "2019-12-06 01:08:53.860200"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.862862"], ["last_sign_in_at", "2019-12-06 01:08:53.862862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.863440"], ["id", 592]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n1vGwxxIGytqxbgB.nH7M.S/qUCNMoi/y1aB.RjbvDu1fi/ETM.Bu"], ["created_at", "2019-12-06 01:08:53.874603"], ["updated_at", "2019-12-06 01:08:53.874603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.876871"], ["updated_at", "2019-12-06 01:08:53.876871"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 535], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 593], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 593], ["room_id", 535], ["created_at", "2019-12-06 01:08:53.881287"], ["updated_at", "2019-12-06 01:08:53.881287"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 535], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 593], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 593], ["room_id", 535], ["created_at", "2019-12-06 01:08:53.885392"], ["updated_at", "2019-12-06 01:08:53.885392"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.887743"], ["last_sign_in_at", "2019-12-06 01:08:53.887743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.888261"], ["id", 593]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZMX5tbl/sfJusXO4odYY/uAPoP.eSOwtrYDXzE/8u92ooK5ooe0rC"], ["created_at", "2019-12-06 01:08:53.902481"], ["updated_at", "2019-12-06 01:08:53.902481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.904945"], ["last_sign_in_at", "2019-12-06 01:08:53.904945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.905500"], ["id", 594]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 62ms (Views: 46.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pOgaEzjdjHgJN9wWuuxA.OYj/zd36zolxwM.OVn5yNolr/X7cuN7i"], ["created_at", "2019-12-06 01:08:53.978929"], ["updated_at", "2019-12-06 01:08:53.978929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.981341"], ["last_sign_in_at", "2019-12-06 01:08:53.981341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.981969"], ["id", 595]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NIzYRc/TWDij5zIncXA4CuLpXvqDnMLxU6/C6CT9Gzi5G.0YAtjQO"], ["created_at", "2019-12-06 01:08:53.991292"], ["updated_at", "2019-12-06 01:08:53.991292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:08:53 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.994197"], ["last_sign_in_at", "2019-12-06 01:08:53.994197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.994754"], ["id", 596]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qenRv3UOQXmpSQFMacuumuqNZW7Oi/7px2rE68NvpfFLKF5lDCV1i"], ["created_at", "2019-12-06 01:08:54.022645"], ["updated_at", "2019-12-06 01:08:54.022645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.024992"], ["last_sign_in_at", "2019-12-06 01:08:54.024992"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.026001"], ["id", 597]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Womc6COYRkKaxV9wivl6r.HW4uYOfESZDUOccpf6Lm8Yr7tdUeuGm"], ["created_at", "2019-12-06 01:08:54.049837"], ["updated_at", "2019-12-06 01:08:54.049837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.052588"], ["updated_at", "2019-12-06 01:08:54.052588"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/536” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.054955"], ["last_sign_in_at", "2019-12-06 01:08:54.054955"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.055724"], ["id", 598]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"536"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 536], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 22ms (Views: 3.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mqqa8gxkOV0ITa/94C4tD.AejhOWBfLdkvEs79EEZ.hE33otHeog."], ["created_at", "2019-12-06 01:08:54.087053"], ["updated_at", "2019-12-06 01:08:54.087053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.089925"], ["updated_at", "2019-12-06 01:08:54.089925"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/537” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.092625"], ["last_sign_in_at", "2019-12-06 01:08:54.092625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.093143"], ["id", 599]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"537"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 537], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.107181"], ["updated_at", "2019-12-06 01:08:54.107181"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/538” for 127.0.0.1 at 2019-12-05 22:08:54 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"538"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ibk0hGHwmsLMnbK8lFUNbenY0kJM3Xxw0s3H74NLEpvv5ORjIL7f6"], ["created_at", "2019-12-06 01:08:54.118840"], ["updated_at", "2019-12-06 01:08:54.118840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.121322"], ["updated_at", "2019-12-06 01:08:54.121322"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/539/edit” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.124032"], ["last_sign_in_at", "2019-12-06 01:08:54.124032"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.124715"], ["id", 600]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"539"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 539], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EDtzfsTi8O03raz1ocI7OuDpRCVQ3RXRc8.INQ9pSPi6XbG9GGi36"], ["created_at", "2019-12-06 01:08:54.154772"], ["updated_at", "2019-12-06 01:08:54.154772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.157128"], ["updated_at", "2019-12-06 01:08:54.157128"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/540/edit” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.159645"], ["last_sign_in_at", "2019-12-06 01:08:54.159645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.160196"], ["id", 601]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"540"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 540], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.172835"], ["updated_at", "2019-12-06 01:08:54.172835"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/541” for 127.0.0.1 at 2019-12-05 22:08:54 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"541"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9mNB5z4tMP7IasNQZR.s1uafxzxtysNj2sD.Oejpokh//LA8tc5OS"], ["created_at", "2019-12-06 01:08:54.185898"], ["updated_at", "2019-12-06 01:08:54.185898"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.189105"], ["last_sign_in_at", "2019-12-06 01:08:54.189105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.189914"], ["id", 602]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.194030"], ["updated_at", "2019-12-06 01:08:54.194030"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NQ9laJ3oUOOkMiAVppS/.ezmelXkry5.xjQ/R6H1aQdHNSpGMVbva"], ["created_at", "2019-12-06 01:08:54.204487"], ["updated_at", "2019-12-06 01:08:54.204487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.207374"], ["last_sign_in_at", "2019-12-06 01:08:54.207374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.208109"], ["id", 603]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.211954"], ["updated_at", "2019-12-06 01:08:54.211954"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GfCatChtnMu4yz.AuKtgKu/mGiAw7pzPdHWoX/fqCaQ1P6QDTXmjC"], ["created_at", "2019-12-06 01:08:54.221179"], ["updated_at", "2019-12-06 01:08:54.221179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.223806"], ["last_sign_in_at", "2019-12-06 01:08:54.223806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.224291"], ["id", 604]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ILeniH71EkvC5PtMckgh.O/KBT5y0ZJoLGseHZfxi0HSbFSRnEufS"], ["created_at", "2019-12-06 01:08:54.236272"], ["updated_at", "2019-12-06 01:08:54.236272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.239266"], ["last_sign_in_at", "2019-12-06 01:08:54.239266"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.239793"], ["id", 605]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l5/p4TRvzCWXKi53osio1O7afnSTUH7seH53V0bGR5H/UI96//uiG"], ["created_at", "2019-12-06 01:08:54.252537"], ["updated_at", "2019-12-06 01:08:54.252537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.255380"], ["last_sign_in_at", "2019-12-06 01:08:54.255380"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.255879"], ["id", 606]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WjnvZEQGYJhFqZyKpawTseisAS8SLHurzrGmZXcmy8f71LcBaFTlW"], ["created_at", "2019-12-06 01:08:54.267721"], ["updated_at", "2019-12-06 01:08:54.267721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.270611"], ["updated_at", "2019-12-06 01:08:54.270611"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/544” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.273479"], ["last_sign_in_at", "2019-12-06 01:08:54.273479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.274309"], ["id", 607]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"544"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 544], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:08:54.278952"], ["id", 544]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/544 Completed 302 Found in 13ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pQgm33tZz46JrQjlM1VLheMNGeR7dBNe4dvonpok/wl.7E7eUJJ/e"], ["created_at", "2019-12-06 01:08:54.297194"], ["updated_at", "2019-12-06 01:08:54.297194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.299392"], ["updated_at", "2019-12-06 01:08:54.299392"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/545” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.301800"], ["last_sign_in_at", "2019-12-06 01:08:54.301800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.302347"], ["id", 608]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"545"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 545], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:08:54.306101"], ["id", 545]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/545 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2FIELBWadRxfgIkpmZTdxutsoYqDXq8owdCEDe6DzKpmaSgfkSLym"], ["created_at", "2019-12-06 01:08:54.315027"], ["updated_at", "2019-12-06 01:08:54.315027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.317273"], ["updated_at", "2019-12-06 01:08:54.317273"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/546” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.319440"], ["last_sign_in_at", "2019-12-06 01:08:54.319440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.320000"], ["id", 609]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"546"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 546], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2rsDGyNxqw6WljNcJozDouJcxzfn6GMwhNIe4evNSAm0/xoeLCQL2"], ["created_at", "2019-12-06 01:08:54.333992"], ["updated_at", "2019-12-06 01:08:54.333992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.336260"], ["updated_at", "2019-12-06 01:08:54.336260"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/547” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.338658"], ["last_sign_in_at", "2019-12-06 01:08:54.338658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.339191"], ["id", 610]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"547"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 547], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x2nxKXs7JNaN33Evg3wbsuGSNXB00aC8SvMcGz5M1SOK1oZdniQ9i"], ["created_at", "2019-12-06 01:08:54.354355"], ["updated_at", "2019-12-06 01:08:54.354355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.356964"], ["last_sign_in_at", "2019-12-06 01:08:54.356964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.357545"], ["id", 611]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IMG0c43rX/n88oGVYM2s5upv3jR0aFn/ky8Hdn/IHKSzV4pKcuvE2"], ["created_at", "2019-12-06 01:08:54.367779"], ["updated_at", "2019-12-06 01:08:54.367779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.370069"], ["updated_at", "2019-12-06 01:08:54.370069"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/548” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.371999"], ["last_sign_in_at", "2019-12-06 01:08:54.371999"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.372523"], ["id", 612]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"548"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 548], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 548]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$raeGeWSpI2hk02XnXd.7FO0SVUkpqz7csFcpyxS01EyGel8B47lLO"], ["created_at", "2019-12-06 01:08:54.383729"], ["updated_at", "2019-12-06 01:08:54.383729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.385908"], ["updated_at", "2019-12-06 01:08:54.385908"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/549” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.387759"], ["last_sign_in_at", "2019-12-06 01:08:54.387759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.388244"], ["id", 613]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"549"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 549], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 549]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f6slan.bpC1QPz49tlPmDOz/ZooNkz.DSfjRyVvB/c53xTj2P1T8O"], ["created_at", "2019-12-06 01:08:54.399888"], ["updated_at", "2019-12-06 01:08:54.399888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.402223"], ["updated_at", "2019-12-06 01:08:54.402223"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/550” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.404093"], ["last_sign_in_at", "2019-12-06 01:08:54.404093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.404562"], ["id", 614]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"550"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LKVSbTqLJQH.KGbv9RldTeX8bS/m3PwYOfzfSyroPMWRlSQ/Th69m"], ["created_at", "2019-12-06 01:08:54.413693"], ["updated_at", "2019-12-06 01:08:54.413693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.415917"], ["updated_at", "2019-12-06 01:08:54.415917"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/551” for 127.0.0.1 at 2019-12-05 22:08:54 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.417916"], ["last_sign_in_at", "2019-12-06 01:08:54.417916"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.418423"], ["id", 615]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"551"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.687794"], ["updated_at", "2019-12-06 01:10:03.687794"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2UQ0wpUU.I0sdiS/GFdcN.MxR9M8iz8ZyvFEHg3vQTCi.1zMJoRR."], ["created_at", "2019-12-06 01:10:03.736404"], ["updated_at", "2019-12-06 01:10:03.736404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.743396"], ["updated_at", "2019-12-06 01:10:03.743396"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sQzwdzo/RxmYz2f/HwFJ5uduG1EQlR2g7EFOD.HvRq5UTl51yITI6"], ["created_at", "2019-12-06 01:10:03.747648"], ["updated_at", "2019-12-06 01:10:03.747648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.752570"], ["updated_at", "2019-12-06 01:10:03.752570"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NsfhzCZJXG6R7C4aWgAWC./s7a5uFUNoJoLT5X6gkQH1sOgWE07Py"], ["created_at", "2019-12-06 01:10:03.756584"], ["updated_at", "2019-12-06 01:10:03.756584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.762090"], ["updated_at", "2019-12-06 01:10:03.762090"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$zoenDbiJWsFLH//ox68uYunhBVhSdI08xUqDwAgTgB6GDhxbys2Fe"], ["created_at", "2019-12-06 01:10:03.766519"], ["updated_at", "2019-12-06 01:10:03.766519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.771571"], ["updated_at", "2019-12-06 01:10:03.771571"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$WRodQLXFDgB5ITDBOcjaJurWb.3H0tTfSNGc4/l8aXt4Zhw08mH3e"], ["created_at", "2019-12-06 01:10:03.775685"], ["updated_at", "2019-12-06 01:10:03.775685"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 143ms (Views: 110.2ms | ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$u4248VOTItEaWU4V/rkMNeG0HxW35klu2ldR5xb0AJ6uBlKN9Hywy"], ["created_at", "2019-12-06 01:10:04.399455"], ["updated_at", "2019-12-06 01:10:04.399455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.401777"], ["updated_at", "2019-12-06 01:10:04.401777"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.418169"], ["last_sign_in_at", "2019-12-06 01:10:04.418169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.418900"], ["id", 621]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"557"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 557], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 621], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 621], ["room_id", 557], ["created_at", "2019-12-06 01:10:04.455428"], ["updated_at", "2019-12-06 01:10:04.455428"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.0ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 557], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IlvipZfxVWtdeh7SOLdLau.CnanxYngnSaW2Vkj5C1ovx2MIOLbye"], ["created_at", "2019-12-06 01:10:04.465271"], ["updated_at", "2019-12-06 01:10:04.465271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.467592"], ["updated_at", "2019-12-06 01:10:04.467592"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.470079"], ["last_sign_in_at", "2019-12-06 01:10:04.470079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.470624"], ["id", 622]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"558"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 558], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 622], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 622], ["room_id", 558], ["created_at", "2019-12-06 01:10:04.475611"], ["updated_at", "2019-12-06 01:10:04.475611"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$14F6trpFZZdRpGpgnTSpZ.2cO1JjKuCSBF2CzFqKUSaKEz2QXWMdK"], ["created_at", "2019-12-06 01:10:04.484550"], ["updated_at", "2019-12-06 01:10:04.484550"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.486647"], ["updated_at", "2019-12-06 01:10:04.486647"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.488946"], ["last_sign_in_at", "2019-12-06 01:10:04.488946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.489410"], ["id", 623]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"559"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 559], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$gVbEv3kvD63kIIkc1kgxbeiws2/wOCBOUMnKJ7kO2HUZOba0HfWBi"], ["created_at", "2019-12-06 01:10:04.498184"], ["updated_at", "2019-12-06 01:10:04.498184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.500465"], ["updated_at", "2019-12-06 01:10:04.500465"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.502638"], ["last_sign_in_at", "2019-12-06 01:10:04.502638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.503207"], ["id", 624]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"560"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$g3c20hTPQLYExlIUGGESQuWQ4TrCgaHHlVOGr13uRfGm1krRGmoWy"], ["created_at", "2019-12-06 01:10:04.512450"], ["updated_at", "2019-12-06 01:10:04.512450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.514777"], ["updated_at", "2019-12-06 01:10:04.514777"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 561], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 625], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 625], ["room_id", 561], ["created_at", "2019-12-06 01:10:04.518505"], ["updated_at", "2019-12-06 01:10:04.518505"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/561” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.520822"], ["last_sign_in_at", "2019-12-06 01:10:04.520822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.521271"], ["id", 625]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"561"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 561], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '561')[0m
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 346ms (Views: 329.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$d//Lm/JjJZG2acaL9Ws5Oe/smdaNiz95aJYuC3V7tzxl0L5idBvFe"], ["created_at", "2019-12-06 01:10:04.876943"], ["updated_at", "2019-12-06 01:10:04.876943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.879284"], ["updated_at", "2019-12-06 01:10:04.879284"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 562], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 626], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 626], ["room_id", 562], ["created_at", "2019-12-06 01:10:04.883775"], ["updated_at", "2019-12-06 01:10:04.883775"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 562], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 626], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 626], ["room_id", 562], ["created_at", "2019-12-06 01:10:04.887799"], ["updated_at", "2019-12-06 01:10:04.887799"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.890110"], ["last_sign_in_at", "2019-12-06 01:10:04.890110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.890631"], ["id", 626]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 626]] Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NeoPjeqoQpzf1kqAHBTZgedYW76Ww1Y0ZGB08G8qq9IY7t/AvZNWm"], ["created_at", "2019-12-06 01:10:04.933914"], ["updated_at", "2019-12-06 01:10:04.933914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.935966"], ["updated_at", "2019-12-06 01:10:04.935966"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 563], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 627], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 627], ["room_id", 563], ["created_at", "2019-12-06 01:10:04.939586"], ["updated_at", "2019-12-06 01:10:04.939586"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 563], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 627], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 627], ["room_id", 563], ["created_at", "2019-12-06 01:10:04.942949"], ["updated_at", "2019-12-06 01:10:04.942949"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.944964"], ["last_sign_in_at", "2019-12-06 01:10:04.944964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.945455"], ["id", 627]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 627]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$x8/VoyXV6uJ7jepk4bUZmOgnn9DdHzOQZXu3wX04VZnA39x0TT8mO"], ["created_at", "2019-12-06 01:10:04.958067"], ["updated_at", "2019-12-06 01:10:04.958067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.960110"], ["updated_at", "2019-12-06 01:10:04.960110"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 564], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 628], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 628], ["room_id", 564], ["created_at", "2019-12-06 01:10:04.963835"], ["updated_at", "2019-12-06 01:10:04.963835"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/253” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.966183"], ["last_sign_in_at", "2019-12-06 01:10:04.966183"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.966703"], ["id", 628]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"253"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 253], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 253]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vMB3V0/DGB4VJZR.3OT0vObCXFJeNOMLl2DcfW7SMvSPWmfRY1biO"], ["created_at", "2019-12-06 01:10:04.991989"], ["updated_at", "2019-12-06 01:10:04.991989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.994149"], ["last_sign_in_at", "2019-12-06 01:10:04.994149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.994685"], ["id", 629]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1pcVY0.uONDsROpfUDxqHuA.qRtyvaSgkoJCjyPFR.wOSwgLjqWoS"], ["created_at", "2019-12-06 01:10:05.038792"], ["updated_at", "2019-12-06 01:10:05.038792"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.041009"], ["updated_at", "2019-12-06 01:10:05.041009"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 565], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 630], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 630], ["room_id", 565], ["created_at", "2019-12-06 01:10:05.044817"], ["updated_at", "2019-12-06 01:10:05.044817"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 565], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 630], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 630], ["room_id", 565], ["created_at", "2019-12-06 01:10:05.049039"], ["updated_at", "2019-12-06 01:10:05.049039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.051394"], ["last_sign_in_at", "2019-12-06 01:10:05.051394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.051892"], ["id", 630]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 565], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 630], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 630], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Om272R67UBE.FLoBicbQeBHFHQVzkUjvGx3SNBcWJqUlpT1xrqRS"], ["created_at", "2019-12-06 01:10:05.065743"], ["updated_at", "2019-12-06 01:10:05.065743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.067999"], ["updated_at", "2019-12-06 01:10:05.067999"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 566], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 631], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 631], ["room_id", 566], ["created_at", "2019-12-06 01:10:05.071831"], ["updated_at", "2019-12-06 01:10:05.071831"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 566], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 631], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 631], ["room_id", 566], ["created_at", "2019-12-06 01:10:05.075683"], ["updated_at", "2019-12-06 01:10:05.075683"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.078115"], ["last_sign_in_at", "2019-12-06 01:10:05.078115"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.078627"], ["id", 631]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 566], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 631], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 631], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T50/LraGFaCJ2mwUFdAnDuniX.3dfAEKGLS05mTBUaWv3413rC71a"], ["created_at", "2019-12-06 01:10:05.093339"], ["updated_at", "2019-12-06 01:10:05.093339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.095594"], ["updated_at", "2019-12-06 01:10:05.095594"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 567], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 632], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 632], ["room_id", 567], ["created_at", "2019-12-06 01:10:05.100251"], ["updated_at", "2019-12-06 01:10:05.100251"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 567], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 632], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 632], ["room_id", 567], ["created_at", "2019-12-06 01:10:05.104323"], ["updated_at", "2019-12-06 01:10:05.104323"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.106785"], ["last_sign_in_at", "2019-12-06 01:10:05.106785"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.107334"], ["id", 632]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qxoJrLMu8G516WiiumvNrOnI.UA7.hdzuA/0tyDO0yi3wmhJpIQPy"], ["created_at", "2019-12-06 01:10:05.118988"], ["updated_at", "2019-12-06 01:10:05.118988"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.121282"], ["updated_at", "2019-12-06 01:10:05.121282"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 568], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 633], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 633], ["room_id", 568], ["created_at", "2019-12-06 01:10:05.125249"], ["updated_at", "2019-12-06 01:10:05.125249"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 568], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 633], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 633], ["room_id", 568], ["created_at", "2019-12-06 01:10:05.129404"], ["updated_at", "2019-12-06 01:10:05.129404"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.132189"], ["last_sign_in_at", "2019-12-06 01:10:05.132189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.132757"], ["id", 633]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5PWXs1Cz3KmpFKmkTSL/LeDFsY0T4v3nbXliJ9TqM8vbYHltkcl66"], ["created_at", "2019-12-06 01:10:05.146564"], ["updated_at", "2019-12-06 01:10:05.146564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.149561"], ["last_sign_in_at", "2019-12-06 01:10:05.149561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.150155"], ["id", 634]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.9ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 65ms (Views: 47.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kRiV2T2/oKEo8Jbi1l7jqeBdW0zwPWrd2CU7gtT3Kc4vbW.E7p/ky"], ["created_at", "2019-12-06 01:10:05.227580"], ["updated_at", "2019-12-06 01:10:05.227580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.229942"], ["last_sign_in_at", "2019-12-06 01:10:05.229942"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.230570"], ["id", 635]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2gFxQ.azfHCDgUVpaArNXOiFvBEAqWNeNZq3M4DA.xI1dLmrvg27S"], ["created_at", "2019-12-06 01:10:05.240840"], ["updated_at", "2019-12-06 01:10:05.240840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.243375"], ["last_sign_in_at", "2019-12-06 01:10:05.243375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.243924"], ["id", 636]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.3ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s9xYB/iUUwSzZy6qxMnwYeE80lPPcU8j9xayAU0EegrCbYebsmPJu"], ["created_at", "2019-12-06 01:10:05.273883"], ["updated_at", "2019-12-06 01:10:05.273883"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.276395"], ["last_sign_in_at", "2019-12-06 01:10:05.276395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.277139"], ["id", 637]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7hVyTNaDD70S3qQ354JgCemK5t67bomdZZoXMu7AAKQNDmMWAi4k6"], ["created_at", "2019-12-06 01:10:05.301719"], ["updated_at", "2019-12-06 01:10:05.301719"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.304325"], ["updated_at", "2019-12-06 01:10:05.304325"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/569” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.307034"], ["last_sign_in_at", "2019-12-06 01:10:05.307034"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.307659"], ["id", 638]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"569"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 569], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 19ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ROOuFa7J3/AKELxqpEaFnuIbn3QG15y3jdoE4PcPjQextRrB8oTJ."], ["created_at", "2019-12-06 01:10:05.339243"], ["updated_at", "2019-12-06 01:10:05.339243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.341831"], ["updated_at", "2019-12-06 01:10:05.341831"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/570” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.343921"], ["last_sign_in_at", "2019-12-06 01:10:05.343921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.344816"], ["id", 639]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"570"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 570], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.355719"], ["updated_at", "2019-12-06 01:10:05.355719"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/571” for 127.0.0.1 at 2019-12-05 22:10:05 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"571"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ydlnzr1eouAZFgs.SIpVdeDLY6hOV943p5ipwqjd.xBtc8XnEccra"], ["created_at", "2019-12-06 01:10:05.366806"], ["updated_at", "2019-12-06 01:10:05.366806"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.369425"], ["updated_at", "2019-12-06 01:10:05.369425"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/572/edit” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.371528"], ["last_sign_in_at", "2019-12-06 01:10:05.371528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.372211"], ["id", 640]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"572"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 572], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 22ms (Views: 4.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e3ft2VwVfN54bJ9sqv53he0Z8kQQgtotYDwKPEC110zaoTk.OA2ye"], ["created_at", "2019-12-06 01:10:05.402812"], ["updated_at", "2019-12-06 01:10:05.402812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.405476"], ["updated_at", "2019-12-06 01:10:05.405476"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/573/edit” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.407936"], ["last_sign_in_at", "2019-12-06 01:10:05.407936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.408622"], ["id", 641]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"573"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 573], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.420812"], ["updated_at", "2019-12-06 01:10:05.420812"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/574” for 127.0.0.1 at 2019-12-05 22:10:05 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"574"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r6oEZ1hCga719FnJzebEFu/7NOnpZseqqp23BjmRAo88bK9zGcnL2"], ["created_at", "2019-12-06 01:10:05.433443"], ["updated_at", "2019-12-06 01:10:05.433443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.436827"], ["last_sign_in_at", "2019-12-06 01:10:05.436827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.437435"], ["id", 642]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.441596"], ["updated_at", "2019-12-06 01:10:05.441596"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$etlyQIvKBT//s9EwJeN64OgwupdaEGPs5nIhhUY1HWGrEBOtPg8WK"], ["created_at", "2019-12-06 01:10:05.451847"], ["updated_at", "2019-12-06 01:10:05.451847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.455067"], ["last_sign_in_at", "2019-12-06 01:10:05.455067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.455723"], ["id", 643]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.459487"], ["updated_at", "2019-12-06 01:10:05.459487"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Zg3XaEtjObuflocarrUSkeudrJmcUNNWItGjFb9DNhb2j9tO4WeMm"], ["created_at", "2019-12-06 01:10:05.468769"], ["updated_at", "2019-12-06 01:10:05.468769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.472095"], ["last_sign_in_at", "2019-12-06 01:10:05.472095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.472673"], ["id", 644]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nQuGI.7I.YvAz.G8POfNzObhr4v2YJDELSKUrXk/Ydf5tsx7GetAu"], ["created_at", "2019-12-06 01:10:05.485510"], ["updated_at", "2019-12-06 01:10:05.485510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.488740"], ["last_sign_in_at", "2019-12-06 01:10:05.488740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.489264"], ["id", 645]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$agaYAN7d9TRlqTMMdZTKMuJeRczR8W9FSJxX6hYoJRxGo12LSfopO"], ["created_at", "2019-12-06 01:10:05.501873"], ["updated_at", "2019-12-06 01:10:05.501873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.504841"], ["last_sign_in_at", "2019-12-06 01:10:05.504841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.505297"], ["id", 646]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4.EngtU9nN999jLGVLFZYOaDdPlDjxzq4x4YSXvul/OWd2nFMjDuu"], ["created_at", "2019-12-06 01:10:05.517222"], ["updated_at", "2019-12-06 01:10:05.517222"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.528124"], ["updated_at", "2019-12-06 01:10:05.528124"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/577” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.530919"], ["last_sign_in_at", "2019-12-06 01:10:05.530919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.531604"], ["id", 647]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"577"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 577], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:10:05.535702"], ["id", 577]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/577 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NvZzUkfwJfXjrieCwPxRrOrpc9GkDR7KGjedt0MtFFBoEbvv82rpG"], ["created_at", "2019-12-06 01:10:05.543674"], ["updated_at", "2019-12-06 01:10:05.543674"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.545908"], ["updated_at", "2019-12-06 01:10:05.545908"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/578” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.548664"], ["last_sign_in_at", "2019-12-06 01:10:05.548664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.549365"], ["id", 648]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"578"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 578], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:10:05.553207"], ["id", 578]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/578 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bugsPDgHF9cnxgyfvU/TDeV8oLYwaL05LI1NtZ9xwIvdzkBDhHk4W"], ["created_at", "2019-12-06 01:10:05.562143"], ["updated_at", "2019-12-06 01:10:05.562143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.564931"], ["updated_at", "2019-12-06 01:10:05.564931"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/579” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.567521"], ["last_sign_in_at", "2019-12-06 01:10:05.567521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.568045"], ["id", 649]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"579"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 579], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9KKFZA2kUSkH3IeusvKZA.mscRTxUW14GUm3IGv4SmfjEX4Ou3K.C"], ["created_at", "2019-12-06 01:10:05.581935"], ["updated_at", "2019-12-06 01:10:05.581935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.584221"], ["updated_at", "2019-12-06 01:10:05.584221"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/580” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.586586"], ["last_sign_in_at", "2019-12-06 01:10:05.586586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.587106"], ["id", 650]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"580"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 580], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2pcPUYJZKehBy8wA2N1uP.IjQoR5S7ucL68vj8Dbybv4wo72sEesK"], ["created_at", "2019-12-06 01:10:05.601773"], ["updated_at", "2019-12-06 01:10:05.601773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.604350"], ["last_sign_in_at", "2019-12-06 01:10:05.604350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.604911"], ["id", 651]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GCsCre8Npv8y8daHp6vOXO3b4qkW0mNZDGq5IVlwbiJAQu8nTnFS6"], ["created_at", "2019-12-06 01:10:05.614890"], ["updated_at", "2019-12-06 01:10:05.614890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.617280"], ["updated_at", "2019-12-06 01:10:05.617280"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/581” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.619215"], ["last_sign_in_at", "2019-12-06 01:10:05.619215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.619722"], ["id", 652]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"581"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 581], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 581]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6myysIMRN2QL9sh80JwmLO6thDQqlPyNPwGM.3m1jyx3rNM0stG0y"], ["created_at", "2019-12-06 01:10:05.630715"], ["updated_at", "2019-12-06 01:10:05.630715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.633079"], ["updated_at", "2019-12-06 01:10:05.633079"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/582” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.634949"], ["last_sign_in_at", "2019-12-06 01:10:05.634949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.635462"], ["id", 653]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"582"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 582], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 582]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dQ.R9AwW3Wnt4SVwKDcdju1bfoT3zUHgZSWB5k54gmuZfu52SS5wG"], ["created_at", "2019-12-06 01:10:05.646644"], ["updated_at", "2019-12-06 01:10:05.646644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.649340"], ["updated_at", "2019-12-06 01:10:05.649340"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/583” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.651264"], ["last_sign_in_at", "2019-12-06 01:10:05.651264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.651770"], ["id", 654]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"583"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tWzcqseRHsIfj3O0Yi4Os.iSaQOuXqt9Nyc0UW4BmUPnUsXcHCodK"], ["created_at", "2019-12-06 01:10:05.660523"], ["updated_at", "2019-12-06 01:10:05.660523"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.662730"], ["updated_at", "2019-12-06 01:10:05.662730"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/584” for 127.0.0.1 at 2019-12-05 22:10:05 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.665080"], ["last_sign_in_at", "2019-12-06 01:10:05.665080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.665717"], ["id", 655]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"584"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.698931"], ["updated_at", "2019-12-06 01:11:19.698931"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$MkXLMA3zyuSTigaMXph2iO6sgUG8EK5L6HEWT4TCPEDbHdbvD4YYG"], ["created_at", "2019-12-06 01:11:19.748820"], ["updated_at", "2019-12-06 01:11:19.748820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.755390"], ["updated_at", "2019-12-06 01:11:19.755390"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2cU3hIlfwN7luWZlO27Tm.1Qms4H2n9U8eq97MCtMjSvJcQ1ElnRG"], ["created_at", "2019-12-06 01:11:19.759814"], ["updated_at", "2019-12-06 01:11:19.759814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.764287"], ["updated_at", "2019-12-06 01:11:19.764287"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SXAlOOzo14kYKdDGFXwdFeJqy2cdM8Vgk/w5oQQ9p4ovTixsZcEBG"], ["created_at", "2019-12-06 01:11:19.768337"], ["updated_at", "2019-12-06 01:11:19.768337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.773697"], ["updated_at", "2019-12-06 01:11:19.773697"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fYcJPiza0PyyQK1fZVuee.hjuP4B49GmDq1n9x71ruwUIXtoAk9U6"], ["created_at", "2019-12-06 01:11:19.777547"], ["updated_at", "2019-12-06 01:11:19.777547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.782133"], ["updated_at", "2019-12-06 01:11:19.782133"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1PsqN6RLCV/jF7jd6X80JOKMYRb6CBt5CDIvPZSLbUTdYqqtNw2Cy"], ["created_at", "2019-12-06 01:11:19.786375"], ["updated_at", "2019-12-06 01:11:19.786375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 140ms (Views: 107.8ms | ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SHruDhFC/tV6.S3OTzBxRO1oD.kkV4L4gDghAsp5/KUAZs8QJsE3K"], ["created_at", "2019-12-06 01:11:20.405945"], ["updated_at", "2019-12-06 01:11:20.405945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.408171"], ["updated_at", "2019-12-06 01:11:20.408171"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.423905"], ["last_sign_in_at", "2019-12-06 01:11:20.423905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.424538"], ["id", 661]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"590"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 590], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 661], ["LIMIT", 1]]
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 661], ["room_id", 590], ["created_at", "2019-12-06 01:11:20.459655"], ["updated_at", "2019-12-06 01:11:20.459655"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.5ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 590], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.5KeY3iWayty7mOrrNPNOeyjW5/DBFq2JJNsivV0lLtcMn.yyi2UO"], ["created_at", "2019-12-06 01:11:20.470427"], ["updated_at", "2019-12-06 01:11:20.470427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.472991"], ["updated_at", "2019-12-06 01:11:20.472991"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.475441"], ["last_sign_in_at", "2019-12-06 01:11:20.475441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.476022"], ["id", 662]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"591"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 591], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 662], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 662], ["room_id", 591], ["created_at", "2019-12-06 01:11:20.480902"], ["updated_at", "2019-12-06 01:11:20.480902"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YfL6QBb2i6lUC5ojqldT1erje0TuKznXahdAXkpWhHiiLzD.MgxEC"], ["created_at", "2019-12-06 01:11:20.489571"], ["updated_at", "2019-12-06 01:11:20.489571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.491815"], ["updated_at", "2019-12-06 01:11:20.491815"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.494271"], ["last_sign_in_at", "2019-12-06 01:11:20.494271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.494807"], ["id", 663]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"592"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 592], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$pcWFq/ReRJsY5DuZ6bUmzek0kYT0IuKII2PeUzfMIVEGDKbGgGl.a"], ["created_at", "2019-12-06 01:11:20.504153"], ["updated_at", "2019-12-06 01:11:20.504153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.506345"], ["updated_at", "2019-12-06 01:11:20.506345"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.508601"], ["last_sign_in_at", "2019-12-06 01:11:20.508601"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.509116"], ["id", 664]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"593"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$A1qk0yw/GpjWtKyy1XGGCe9iEZLqN0zUP01CqJk3SL543STuQfxDm"], ["created_at", "2019-12-06 01:11:20.519464"], ["updated_at", "2019-12-06 01:11:20.519464"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.521622"], ["updated_at", "2019-12-06 01:11:20.521622"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 594], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 665], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 665], ["room_id", 594], ["created_at", "2019-12-06 01:11:20.526083"], ["updated_at", "2019-12-06 01:11:20.526083"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/594” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.528557"], ["last_sign_in_at", "2019-12-06 01:11:20.528557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.529063"], ["id", 665]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"594"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 594], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '594')[0m
Rendered appointments/show.html.erb within layouts/application (21.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 347ms (Views: 330.1ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$XN5g96J268JWnO6p2WxocOsQyIaQhPENk.fD/L/4qlcWaE22NmfoS"], ["created_at", "2019-12-06 01:11:20.886755"], ["updated_at", "2019-12-06 01:11:20.886755"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.889015"], ["updated_at", "2019-12-06 01:11:20.889015"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 595], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 666], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 666], ["room_id", 595], ["created_at", "2019-12-06 01:11:20.893042"], ["updated_at", "2019-12-06 01:11:20.893042"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 595], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 666], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 666], ["room_id", 595], ["created_at", "2019-12-06 01:11:20.896638"], ["updated_at", "2019-12-06 01:11:20.896638"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.898658"], ["last_sign_in_at", "2019-12-06 01:11:20.898658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.899101"], ["id", 666]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 666]] Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xC.hW2ivtIIBIzb4D8xN7eGr7DnCVHWugGAe9rlx9CuWwlFMYJzbi"], ["created_at", "2019-12-06 01:11:20.942744"], ["updated_at", "2019-12-06 01:11:20.942744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.945003"], ["updated_at", "2019-12-06 01:11:20.945003"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 596], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 667], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 667], ["room_id", 596], ["created_at", "2019-12-06 01:11:20.948881"], ["updated_at", "2019-12-06 01:11:20.948881"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 596], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 667], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 667], ["room_id", 596], ["created_at", "2019-12-06 01:11:20.953197"], ["updated_at", "2019-12-06 01:11:20.953197"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.955531"], ["last_sign_in_at", "2019-12-06 01:11:20.955531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.956040"], ["id", 667]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 667]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$oYcgKvQ1JVG9Afw2TaVUtufpCwz97tlDoKtACvPyWqAjmUHoJ1fGC"], ["created_at", "2019-12-06 01:11:20.969533"], ["updated_at", "2019-12-06 01:11:20.969533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.971881"], ["updated_at", "2019-12-06 01:11:20.971881"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 597], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 668], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 668], ["room_id", 597], ["created_at", "2019-12-06 01:11:20.975808"], ["updated_at", "2019-12-06 01:11:20.975808"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/269” for 127.0.0.1 at 2019-12-05 22:11:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.978191"], ["last_sign_in_at", "2019-12-06 01:11:20.978191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.978721"], ["id", 668]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"269"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 269], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 269]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2E7vVKCMIWTUnIeT.fQ0cuYby/xc1GS40IlYiC4mlVbK8t6tHcc1m"], ["created_at", "2019-12-06 01:11:21.005167"], ["updated_at", "2019-12-06 01:11:21.005167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.007538"], ["last_sign_in_at", "2019-12-06 01:11:21.007538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.008172"], ["id", 669]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nxJD0adgaHfuqbqZFIg0puHx8in/5WebmBf/6TbxqJE6ozDGFDMdS"], ["created_at", "2019-12-06 01:11:21.051757"], ["updated_at", "2019-12-06 01:11:21.051757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.054009"], ["updated_at", "2019-12-06 01:11:21.054009"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 598], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 670], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 670], ["room_id", 598], ["created_at", "2019-12-06 01:11:21.057853"], ["updated_at", "2019-12-06 01:11:21.057853"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 598], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 670], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 670], ["room_id", 598], ["created_at", "2019-12-06 01:11:21.061719"], ["updated_at", "2019-12-06 01:11:21.061719"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.064075"], ["last_sign_in_at", "2019-12-06 01:11:21.064075"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.064591"], ["id", 670]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 598], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 670], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 670], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QMTsTNu6HvbVCHGVl/zR2ORyYV.DzbH1ECuoKCUlGscaWoiadFLk."], ["created_at", "2019-12-06 01:11:21.078150"], ["updated_at", "2019-12-06 01:11:21.078150"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.080397"], ["updated_at", "2019-12-06 01:11:21.080397"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 599], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 671], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 671], ["room_id", 599], ["created_at", "2019-12-06 01:11:21.084823"], ["updated_at", "2019-12-06 01:11:21.084823"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 599], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 671], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 671], ["room_id", 599], ["created_at", "2019-12-06 01:11:21.088826"], ["updated_at", "2019-12-06 01:11:21.088826"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.091118"], ["last_sign_in_at", "2019-12-06 01:11:21.091118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.091621"], ["id", 671]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 599], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 671], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 671], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kmDBqJtf0T3aSE9p70ypB.0Vd0NZFoU8yDfxz2AlDF62uwT5OxXBC"], ["created_at", "2019-12-06 01:11:21.105900"], ["updated_at", "2019-12-06 01:11:21.105900"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.108079"], ["updated_at", "2019-12-06 01:11:21.108079"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 600], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 672], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 672], ["room_id", 600], ["created_at", "2019-12-06 01:11:21.111786"], ["updated_at", "2019-12-06 01:11:21.111786"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 600], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 672], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 672], ["room_id", 600], ["created_at", "2019-12-06 01:11:21.115608"], ["updated_at", "2019-12-06 01:11:21.115608"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.118307"], ["last_sign_in_at", "2019-12-06 01:11:21.118307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.118842"], ["id", 672]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lz6SGth6H1i/C9T/Wo9gIuWO6ftqol/9jvS93/ssikT/QR0YQ/GuC"], ["created_at", "2019-12-06 01:11:21.129897"], ["updated_at", "2019-12-06 01:11:21.129897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.132121"], ["updated_at", "2019-12-06 01:11:21.132121"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 601], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 673], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 673], ["room_id", 601], ["created_at", "2019-12-06 01:11:21.136431"], ["updated_at", "2019-12-06 01:11:21.136431"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 601], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 673], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 673], ["room_id", 601], ["created_at", "2019-12-06 01:11:21.140395"], ["updated_at", "2019-12-06 01:11:21.140395"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.142807"], ["last_sign_in_at", "2019-12-06 01:11:21.142807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.143330"], ["id", 673]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jDIitjc16y6J0j9fj9/SWORKCcRpAehPv8.y3nzyEA6eJPAM0OEpW"], ["created_at", "2019-12-06 01:11:21.157115"], ["updated_at", "2019-12-06 01:11:21.157115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.159640"], ["last_sign_in_at", "2019-12-06 01:11:21.159640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.160258"], ["id", 674]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 63ms (Views: 46.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CVw/eHFyVDWEUm6FqBO0WeSopf4G0ku7rrHftxYJTfz5xAiWjps1O"], ["created_at", "2019-12-06 01:11:21.234310"], ["updated_at", "2019-12-06 01:11:21.234310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.236574"], ["last_sign_in_at", "2019-12-06 01:11:21.236574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.237033"], ["id", 675]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cy3TADehkS4d0WhAFTb40.4LWaY6ReW9fTiaJ7xZozS0RBJDGLA7C"], ["created_at", "2019-12-06 01:11:21.245877"], ["updated_at", "2019-12-06 01:11:21.245877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.248169"], ["last_sign_in_at", "2019-12-06 01:11:21.248169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.248685"], ["id", 676]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S.TsKwu1nK79bGWVrJF/fOwuuU4xo6pxqeVA6Mrvo8ufRU/hbvb8m"], ["created_at", "2019-12-06 01:11:21.279097"], ["updated_at", "2019-12-06 01:11:21.279097"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.281750"], ["last_sign_in_at", "2019-12-06 01:11:21.281750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.282289"], ["id", 677]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LFFDNnEdnAS.fnb3MKde0eUvDfnZYP9GgW73WEDB389/YhEtrAEP6"], ["created_at", "2019-12-06 01:11:21.304768"], ["updated_at", "2019-12-06 01:11:21.304768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.307511"], ["updated_at", "2019-12-06 01:11:21.307511"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/602” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.310081"], ["last_sign_in_at", "2019-12-06 01:11:21.310081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.310551"], ["id", 678]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"602"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 602], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 20ms (Views: 3.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jQMIpcokPGBh0oqHGSwA3ePfqcnjkFOmKuyaz7/9s5BT/C32YmrfO"], ["created_at", "2019-12-06 01:11:21.339782"], ["updated_at", "2019-12-06 01:11:21.339782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.342377"], ["updated_at", "2019-12-06 01:11:21.342377"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/603” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.344671"], ["last_sign_in_at", "2019-12-06 01:11:21.344671"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.345485"], ["id", 679]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"603"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 603], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.359585"], ["updated_at", "2019-12-06 01:11:21.359585"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/604” for 127.0.0.1 at 2019-12-05 22:11:21 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"604"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b0pEXmoOhvv4vjEVEO2tlOzJfOzHa0KPAwBsT0uyfEBlaAU/NzuMe"], ["created_at", "2019-12-06 01:11:21.370700"], ["updated_at", "2019-12-06 01:11:21.370700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.373177"], ["updated_at", "2019-12-06 01:11:21.373177"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/605/edit” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.375573"], ["last_sign_in_at", "2019-12-06 01:11:21.375573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.376106"], ["id", 680]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"605"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 605], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kr7B5o8AOi9umO2rqyOceefUHjXT21HgKNV9OSXAfHs/UmSx/T0UK"], ["created_at", "2019-12-06 01:11:21.406339"], ["updated_at", "2019-12-06 01:11:21.406339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.408824"], ["updated_at", "2019-12-06 01:11:21.408824"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/606/edit” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.411128"], ["last_sign_in_at", "2019-12-06 01:11:21.411128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.411882"], ["id", 681]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"606"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 606], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.423785"], ["updated_at", "2019-12-06 01:11:21.423785"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/607” for 127.0.0.1 at 2019-12-05 22:11:21 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"607"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kps6kP8UZrqr/AaUyKdHyed90JZZdV7m3QMiZad4fyNVFEaqExQ96"], ["created_at", "2019-12-06 01:11:21.435945"], ["updated_at", "2019-12-06 01:11:21.435945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.438676"], ["last_sign_in_at", "2019-12-06 01:11:21.438676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.439439"], ["id", 682]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.443096"], ["updated_at", "2019-12-06 01:11:21.443096"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jsb.dzIJHNYdO9kr1JqdM.SiFOeZAuPxLUItnoucSe79aXxuPE9CC"], ["created_at", "2019-12-06 01:11:21.452546"], ["updated_at", "2019-12-06 01:11:21.452546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.455784"], ["last_sign_in_at", "2019-12-06 01:11:21.455784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.456276"], ["id", 683]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.459933"], ["updated_at", "2019-12-06 01:11:21.459933"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pWHHxRpLfX6mu0bliz2PFeHvMCEAgpl/UNaP3VNscHNYh7BZhnRFO"], ["created_at", "2019-12-06 01:11:21.468809"], ["updated_at", "2019-12-06 01:11:21.468809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.471560"], ["last_sign_in_at", "2019-12-06 01:11:21.471560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.472152"], ["id", 684]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rPxKR2FL7nDtGbfnS2qH9e2oKc0MHGVWLI5clras8fB9NQOsfPIea"], ["created_at", "2019-12-06 01:11:21.484767"], ["updated_at", "2019-12-06 01:11:21.484767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.487706"], ["last_sign_in_at", "2019-12-06 01:11:21.487706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.488250"], ["id", 685]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eSCsUXyQJeylR1t07zGIEubCutjOtWIxpS031O47FcaDhdjFZ739e"], ["created_at", "2019-12-06 01:11:21.499780"], ["updated_at", "2019-12-06 01:11:21.499780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.502921"], ["last_sign_in_at", "2019-12-06 01:11:21.502921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.503415"], ["id", 686]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A7sZqfssIBmqSUJNs0SMZehk46honJjrH.ahrjtUofXbQyG.oGSeu"], ["created_at", "2019-12-06 01:11:21.514892"], ["updated_at", "2019-12-06 01:11:21.514892"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.517945"], ["updated_at", "2019-12-06 01:11:21.517945"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/610” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.529457"], ["last_sign_in_at", "2019-12-06 01:11:21.529457"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.530041"], ["id", 687]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"610"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 610], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:11:21.534439"], ["id", 610]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/610 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5y5ra/RXT22gg6IcesEBBeVc.6yP52C4Y0VVjJxHJYnbIwFg.wFcm"], ["created_at", "2019-12-06 01:11:21.542602"], ["updated_at", "2019-12-06 01:11:21.542602"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.544810"], ["updated_at", "2019-12-06 01:11:21.544810"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/611” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.547014"], ["last_sign_in_at", "2019-12-06 01:11:21.547014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.547538"], ["id", 688]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"611"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 611], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:11:21.551474"], ["id", 611]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/611 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JBzr683DNIkD1X5k.6GekuZUXehtS6KUuLfVbHKKIjqsHHiT4nvmC"], ["created_at", "2019-12-06 01:11:21.559700"], ["updated_at", "2019-12-06 01:11:21.559700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.561889"], ["updated_at", "2019-12-06 01:11:21.561889"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/612” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.564091"], ["last_sign_in_at", "2019-12-06 01:11:21.564091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.564646"], ["id", 689]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"612"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 612], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qQRi64cbMt6k9IjHABd/6ukkhplvbpm5RoLtMNAeBI8VnmwLAwYk2"], ["created_at", "2019-12-06 01:11:21.578614"], ["updated_at", "2019-12-06 01:11:21.578614"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.580810"], ["updated_at", "2019-12-06 01:11:21.580810"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/613” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.583179"], ["last_sign_in_at", "2019-12-06 01:11:21.583179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.584028"], ["id", 690]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"613"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 613], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7cFtWzRb1ejVt/E5E6A7.e8Ws.erdtH8jc/U9IAcuJtOIDOMLcQbm"], ["created_at", "2019-12-06 01:11:21.598060"], ["updated_at", "2019-12-06 01:11:21.598060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.601091"], ["last_sign_in_at", "2019-12-06 01:11:21.601091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.601761"], ["id", 691]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Br9K53ZeI.ohOoe91ISzMurnlSaB6IeaRVMu23tL4FI886Dhu9.Fi"], ["created_at", "2019-12-06 01:11:21.611570"], ["updated_at", "2019-12-06 01:11:21.611570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.613801"], ["updated_at", "2019-12-06 01:11:21.613801"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/614” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.615836"], ["last_sign_in_at", "2019-12-06 01:11:21.615836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.616517"], ["id", 692]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"614"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 614], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 614]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wNPNhvavUKXg.nwCUz7Mee8yDkMSVXSbGbubIBI2KOVeNm0CvOjoy"], ["created_at", "2019-12-06 01:11:21.628858"], ["updated_at", "2019-12-06 01:11:21.628858"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.631227"], ["updated_at", "2019-12-06 01:11:21.631227"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/615” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.633802"], ["last_sign_in_at", "2019-12-06 01:11:21.633802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.634495"], ["id", 693]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"615"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 615], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 615]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$verbw8jzaVdNSXGTCuhjiOR.PGqfITRQm1OZ7L.K0G181EO3iiesm"], ["created_at", "2019-12-06 01:11:21.647591"], ["updated_at", "2019-12-06 01:11:21.647591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.650326"], ["updated_at", "2019-12-06 01:11:21.650326"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/616” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.652613"], ["last_sign_in_at", "2019-12-06 01:11:21.652613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.653172"], ["id", 694]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"616"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6zXC1ne/oGa2Nl5nEfXFoebkYtIc1yYpxp7M5TcnS.EAOSewjHlmO"], ["created_at", "2019-12-06 01:11:21.662638"], ["updated_at", "2019-12-06 01:11:21.662638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.664923"], ["updated_at", "2019-12-06 01:11:21.664923"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/617” for 127.0.0.1 at 2019-12-05 22:11:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.667460"], ["last_sign_in_at", "2019-12-06 01:11:21.667460"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.668072"], ["id", 695]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"617"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (5.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.348925"], ["updated_at", "2019-12-06 01:15:26.348925"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (9.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (3.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$eieEEVwo7zoQuPHRGXpiQeCVjheS0PdTTLmWr9IOQNsy3vEarNLOG"], ["created_at", "2019-12-06 01:15:26.412365"], ["updated_at", "2019-12-06 01:15:26.412365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.422259"], ["updated_at", "2019-12-06 01:15:26.422259"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fo1K5l806SO46IhTg62dbeb3BSieAqKMI.KkZDFcdHUvr8iG4/Tc6"], ["created_at", "2019-12-06 01:15:26.426317"], ["updated_at", "2019-12-06 01:15:26.426317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (2.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 619], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 697], ["LIMIT", 1]]
[1m[35mSQL (6.1ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 697], ["room_id", 619], ["created_at", "2019-12-06 01:15:26.475547"], ["updated_at", "2019-12-06 01:15:26.475547"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.487051"], ["updated_at", "2019-12-06 01:15:26.487051"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yGsTiKrGduMZsarB69NNwuCA1gzlVHR07cMQ1gIh9vFSz3hySq/Cm"], ["created_at", "2019-12-06 01:15:26.491271"], ["updated_at", "2019-12-06 01:15:26.491271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 620], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 698], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 698], ["room_id", 620], ["created_at", "2019-12-06 01:15:26.495479"], ["updated_at", "2019-12-06 01:15:26.495479"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.501777"], ["updated_at", "2019-12-06 01:15:26.501777"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$DlLZD9BqcxAFlHgnCCtS0OFcECchPSCCjKpIoQ3JVb96R5syisWUy"], ["created_at", "2019-12-06 01:15:26.506296"], ["updated_at", "2019-12-06 01:15:26.506296"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 621], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 699], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 699], ["room_id", 621], ["created_at", "2019-12-06 01:15:26.510664"], ["updated_at", "2019-12-06 01:15:26.510664"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.515489"], ["updated_at", "2019-12-06 01:15:26.515489"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$RejWLjOFpJVlt0u4QMskBuSBl1ShENAJDgCnAdoM93zUNcgnWE9nW"], ["created_at", "2019-12-06 01:15:26.519147"], ["updated_at", "2019-12-06 01:15:26.519147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 622], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 700], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 700], ["room_id", 622], ["created_at", "2019-12-06 01:15:26.522954"], ["updated_at", "2019-12-06 01:15:26.522954"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 142ms (Views: 111.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$v0NvB3aON/2YNPNWc1z0wOtxGrvTlcYqoV5lE7uCbTzdB5axVirSW"], ["created_at", "2019-12-06 01:15:27.124002"], ["updated_at", "2019-12-06 01:15:27.124002"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.126100"], ["updated_at", "2019-12-06 01:15:27.126100"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.141787"], ["last_sign_in_at", "2019-12-06 01:15:27.141787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.142399"], ["id", 701]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"623"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 623], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 701], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 701], ["room_id", 623], ["created_at", "2019-12-06 01:15:27.159503"], ["updated_at", "2019-12-06 01:15:27.159503"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
[1m[36mAppointment Load (8.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 623], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rZluNDtFMLzHdEXu8UGH1.vTVz2ZZtEK9c32kRuplLNL6mvoZDAM2"], ["created_at", "2019-12-06 01:15:27.177830"], ["updated_at", "2019-12-06 01:15:27.177830"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.180345"], ["updated_at", "2019-12-06 01:15:27.180345"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.183298"], ["last_sign_in_at", "2019-12-06 01:15:27.183298"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.183927"], ["id", 702]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"624"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 624], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 702], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 702], ["room_id", 624], ["created_at", "2019-12-06 01:15:27.190204"], ["updated_at", "2019-12-06 01:15:27.190204"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$9Q68PxwWSH4xYH6/5e6YGOdK7nFGy.iyn3JPTfGJbXMzk7yyHhLVS"], ["created_at", "2019-12-06 01:15:27.200834"], ["updated_at", "2019-12-06 01:15:27.200834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.203026"], ["updated_at", "2019-12-06 01:15:27.203026"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.205510"], ["last_sign_in_at", "2019-12-06 01:15:27.205510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.206046"], ["id", 703]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"625"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 625], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TXdA2HzKxk4QOjJYdTkIUO6XuupZ48KtmXOvIDHrjlF.aAtD71Ete"], ["created_at", "2019-12-06 01:15:27.215177"], ["updated_at", "2019-12-06 01:15:27.215177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.217426"], ["updated_at", "2019-12-06 01:15:27.217426"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.219817"], ["last_sign_in_at", "2019-12-06 01:15:27.219817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.220389"], ["id", 704]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"626"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Gb42EONO/JDN2jzo5b6Ig.v9ZTbXMP0X6R7aarXiZIkO8wOXqkYra"], ["created_at", "2019-12-06 01:15:27.230911"], ["updated_at", "2019-12-06 01:15:27.230911"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.233144"], ["updated_at", "2019-12-06 01:15:27.233144"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 627], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 705], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 705], ["room_id", 627], ["created_at", "2019-12-06 01:15:27.237260"], ["updated_at", "2019-12-06 01:15:27.237260"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/627” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.239712"], ["last_sign_in_at", "2019-12-06 01:15:27.239712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.240300"], ["id", 705]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"627"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 627], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '627')[0m
Rendered appointments/show.html.erb within layouts/application (25.0ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 357ms (Views: 339.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$6qH3pR15jFiE1xAOtdD8C.pHm/d917786EHAh9mM6gfJ.y1xSApGe"], ["created_at", "2019-12-06 01:15:27.606598"], ["updated_at", "2019-12-06 01:15:27.606598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.609216"], ["updated_at", "2019-12-06 01:15:27.609216"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 628], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 706], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 706], ["room_id", 628], ["created_at", "2019-12-06 01:15:27.612879"], ["updated_at", "2019-12-06 01:15:27.612879"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 628], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 706], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 706], ["room_id", 628], ["created_at", "2019-12-06 01:15:27.616365"], ["updated_at", "2019-12-06 01:15:27.616365"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.618444"], ["last_sign_in_at", "2019-12-06 01:15:27.618444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.618911"], ["id", 706]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 706]] Rendered appointments/my_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 34ms (Views: 3.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$wWwwR.bfr.AMSxGb7HpV6elgnCpfY.m4bkDxHZoHsUZtPB.atfBd2"], ["created_at", "2019-12-06 01:15:27.661623"], ["updated_at", "2019-12-06 01:15:27.661623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.663881"], ["updated_at", "2019-12-06 01:15:27.663881"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 629], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 707], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 707], ["room_id", 629], ["created_at", "2019-12-06 01:15:27.667702"], ["updated_at", "2019-12-06 01:15:27.667702"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 629], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 707], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 707], ["room_id", 629], ["created_at", "2019-12-06 01:15:27.671686"], ["updated_at", "2019-12-06 01:15:27.671686"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.674270"], ["last_sign_in_at", "2019-12-06 01:15:27.674270"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.674824"], ["id", 707]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 707]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HFj4orzZhbv.sNCeMI3ExOkygKuET1NS1PeCx.CKGwSwAU1vSfj52"], ["created_at", "2019-12-06 01:15:27.700561"], ["updated_at", "2019-12-06 01:15:27.700561"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.702862"], ["updated_at", "2019-12-06 01:15:27.702862"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 630], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 708], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 708], ["room_id", 630], ["created_at", "2019-12-06 01:15:27.706813"], ["updated_at", "2019-12-06 01:15:27.706813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/289” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.709322"], ["last_sign_in_at", "2019-12-06 01:15:27.709322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.709792"], ["id", 708]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"289"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 289], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 289]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qkzyhKSLGjSCKz5jW./yQ.Pm7cziISe1LJTauY8CVFAiAZXRdKMuG"], ["created_at", "2019-12-06 01:15:27.723162"], ["updated_at", "2019-12-06 01:15:27.723162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.725889"], ["last_sign_in_at", "2019-12-06 01:15:27.725889"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.726501"], ["id", 709]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VL1VAA65wxttD5JhSjSeSeNwGso8sT91GJuSuvdWNjzUMZOygzt4W"], ["created_at", "2019-12-06 01:15:27.769979"], ["updated_at", "2019-12-06 01:15:27.769979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.772162"], ["updated_at", "2019-12-06 01:15:27.772162"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 631], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 710], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 710], ["room_id", 631], ["created_at", "2019-12-06 01:15:27.776269"], ["updated_at", "2019-12-06 01:15:27.776269"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 631], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 710], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 710], ["room_id", 631], ["created_at", "2019-12-06 01:15:27.780204"], ["updated_at", "2019-12-06 01:15:27.780204"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.782547"], ["last_sign_in_at", "2019-12-06 01:15:27.782547"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.783069"], ["id", 710]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 631], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 710], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 710], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dG8MrNjIXghIFVQJK7GyhePzakAv8xE1fgKQ2L5US9VCJG7ryRSRa"], ["created_at", "2019-12-06 01:15:27.796462"], ["updated_at", "2019-12-06 01:15:27.796462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.798779"], ["updated_at", "2019-12-06 01:15:27.798779"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 632], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 711], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 711], ["room_id", 632], ["created_at", "2019-12-06 01:15:27.802861"], ["updated_at", "2019-12-06 01:15:27.802861"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 632], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 711], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 711], ["room_id", 632], ["created_at", "2019-12-06 01:15:27.806915"], ["updated_at", "2019-12-06 01:15:27.806915"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.809766"], ["last_sign_in_at", "2019-12-06 01:15:27.809766"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.810310"], ["id", 711]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 632], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 711], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 711], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$goz1g1TiMiesR65MMv8xfuQbSTZYLvjTmMa2lySZiOYduldTZy/y6"], ["created_at", "2019-12-06 01:15:27.825107"], ["updated_at", "2019-12-06 01:15:27.825107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.827438"], ["updated_at", "2019-12-06 01:15:27.827438"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 633], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 712], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 712], ["room_id", 633], ["created_at", "2019-12-06 01:15:27.831411"], ["updated_at", "2019-12-06 01:15:27.831411"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 633], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 712], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 712], ["room_id", 633], ["created_at", "2019-12-06 01:15:27.835200"], ["updated_at", "2019-12-06 01:15:27.835200"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.837554"], ["last_sign_in_at", "2019-12-06 01:15:27.837554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.838095"], ["id", 712]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yiusyd/m6o2H3roNPKzGROgHKlMWebwAK82y7yh06QiFBAOTVHiIy"], ["created_at", "2019-12-06 01:15:27.849902"], ["updated_at", "2019-12-06 01:15:27.849902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.852185"], ["updated_at", "2019-12-06 01:15:27.852185"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 634], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 713], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 713], ["room_id", 634], ["created_at", "2019-12-06 01:15:27.856118"], ["updated_at", "2019-12-06 01:15:27.856118"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 634], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 713], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 713], ["room_id", 634], ["created_at", "2019-12-06 01:15:27.860824"], ["updated_at", "2019-12-06 01:15:27.860824"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.863354"], ["last_sign_in_at", "2019-12-06 01:15:27.863354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.863885"], ["id", 713]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L..PenqzH3yrOI.F27HNz.QoeNvSypbIkE8U5Aw.t8hsiNzTNAS6C"], ["created_at", "2019-12-06 01:15:27.877756"], ["updated_at", "2019-12-06 01:15:27.877756"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.880295"], ["last_sign_in_at", "2019-12-06 01:15:27.880295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.880836"], ["id", 714]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.8ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 63ms (Views: 47.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$70ZL6ouCeGTVxp6FeWypV.1ZdyDBqmnHfnTD.yk.vXqwxZIx1cLIm"], ["created_at", "2019-12-06 01:15:27.955708"], ["updated_at", "2019-12-06 01:15:27.955708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.958574"], ["last_sign_in_at", "2019-12-06 01:15:27.958574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.959233"], ["id", 715]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ri.Q8cjH4rvWNvuWO9l53evXwE0DFFuNUUEfxHn4mG8JytJ40GsWW"], ["created_at", "2019-12-06 01:15:27.970865"], ["updated_at", "2019-12-06 01:15:27.970865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:15:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.973725"], ["last_sign_in_at", "2019-12-06 01:15:27.973725"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.974436"], ["id", 716]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.5ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 20ms (Views: 4.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WbGi5LMOcjjkiGwhsDlSV.OM1UCqAO/ozLAOJm4.GbY/rtgz7vv56"], ["created_at", "2019-12-06 01:15:28.004766"], ["updated_at", "2019-12-06 01:15:28.004766"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.007780"], ["last_sign_in_at", "2019-12-06 01:15:28.007780"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.008327"], ["id", 717]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G11iCmH5AZhBrgCJom2AIeAUMB7GcnoV22AX2KjOP96GsrHF472xy"], ["created_at", "2019-12-06 01:15:28.034088"], ["updated_at", "2019-12-06 01:15:28.034088"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.036661"], ["updated_at", "2019-12-06 01:15:28.036661"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/635” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.039462"], ["last_sign_in_at", "2019-12-06 01:15:28.039462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.040045"], ["id", 718]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"635"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 635], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 3.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FggOKdEZ5YnNljh5AfkSsevLd9qkSt7emSqvn9RyviJ.5gI0/HWHK"], ["created_at", "2019-12-06 01:15:28.070938"], ["updated_at", "2019-12-06 01:15:28.070938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.073863"], ["updated_at", "2019-12-06 01:15:28.073863"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/636” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.076907"], ["last_sign_in_at", "2019-12-06 01:15:28.076907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.077725"], ["id", 719]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"636"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 636], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.089434"], ["updated_at", "2019-12-06 01:15:28.089434"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/637” for 127.0.0.1 at 2019-12-05 22:15:28 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"637"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fHS7IWqHIeMJS3vRxhQBION3X8xdTjxhL5znvKpdjVHxZ6EMzABui"], ["created_at", "2019-12-06 01:15:28.101138"], ["updated_at", "2019-12-06 01:15:28.101138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.103722"], ["updated_at", "2019-12-06 01:15:28.103722"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/638/edit” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.106594"], ["last_sign_in_at", "2019-12-06 01:15:28.106594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.107839"], ["id", 720]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"638"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 638], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dk.Dt3cBB.zihuEivFtUReJdXd2.MgnYbhS2wzcFUPg.JLVI0GfX."], ["created_at", "2019-12-06 01:15:28.138546"], ["updated_at", "2019-12-06 01:15:28.138546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.141352"], ["updated_at", "2019-12-06 01:15:28.141352"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/639/edit” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.143887"], ["last_sign_in_at", "2019-12-06 01:15:28.143887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.144476"], ["id", 721]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"639"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 639], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.156482"], ["updated_at", "2019-12-06 01:15:28.156482"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/640” for 127.0.0.1 at 2019-12-05 22:15:28 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"640"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ks12UfuHsCXb0aj/1hPz0.wSngXRggHhPEptlclADnIlSmsWeXm92"], ["created_at", "2019-12-06 01:15:28.169818"], ["updated_at", "2019-12-06 01:15:28.169818"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.173700"], ["last_sign_in_at", "2019-12-06 01:15:28.173700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.174767"], ["id", 722]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.179185"], ["updated_at", "2019-12-06 01:15:28.179185"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.ZrmfAi8egSSAqQFTXR4Jeef/gytIRku042j0WkfSG.2R4.mQva.O"], ["created_at", "2019-12-06 01:15:28.188177"], ["updated_at", "2019-12-06 01:15:28.188177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.191897"], ["last_sign_in_at", "2019-12-06 01:15:28.191897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.192597"], ["id", 723]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.196621"], ["updated_at", "2019-12-06 01:15:28.196621"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NBaCrlfKI9zq2lDXjl/vKuTxcm3tHpah9zxLl09LcX6u1Rm/QEYS6"], ["created_at", "2019-12-06 01:15:28.205270"], ["updated_at", "2019-12-06 01:15:28.205270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.208855"], ["last_sign_in_at", "2019-12-06 01:15:28.208855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.209771"], ["id", 724]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.XBlr1zQi3TlhJeQsaYVgOofcbHDsgSkRiwTr7KBI7xziokNY.wWS"], ["created_at", "2019-12-06 01:15:28.232666"], ["updated_at", "2019-12-06 01:15:28.232666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.235482"], ["last_sign_in_at", "2019-12-06 01:15:28.235482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.236006"], ["id", 725]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HN.dVdW.YIZyDsgLVm2nsOAY8W/mK0s3t1y6kBgvbgOYldvTV2vZm"], ["created_at", "2019-12-06 01:15:28.248883"], ["updated_at", "2019-12-06 01:15:28.248883"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.252218"], ["last_sign_in_at", "2019-12-06 01:15:28.252218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.253025"], ["id", 726]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/4b8ggi0DhTTS8YkvNh99uZdmVk5cT3d2ktfZm97QCy3t.wfWLAui"], ["created_at", "2019-12-06 01:15:28.265065"], ["updated_at", "2019-12-06 01:15:28.265065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.268055"], ["updated_at", "2019-12-06 01:15:28.268055"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/643” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.270616"], ["last_sign_in_at", "2019-12-06 01:15:28.270616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.271139"], ["id", 727]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"643"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 643], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:15:28.274971"], ["id", 643]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/643 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cNzc0M79weEoH2nKYxVy.ObYArZArikSO8gLkcYH8Nm73o8ko47i6"], ["created_at", "2019-12-06 01:15:28.282349"], ["updated_at", "2019-12-06 01:15:28.282349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.284162"], ["updated_at", "2019-12-06 01:15:28.284162"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/644” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.286074"], ["last_sign_in_at", "2019-12-06 01:15:28.286074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.286509"], ["id", 728]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"644"}
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 644], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:15:28.289947"], ["id", 644]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/644 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8N4nwPDtUR87BgvQfhYV/OnFGe733CDfS5xVarorYc7v0XjIglDY6"], ["created_at", "2019-12-06 01:15:28.297197"], ["updated_at", "2019-12-06 01:15:28.297197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.299174"], ["updated_at", "2019-12-06 01:15:28.299174"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/645” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.301349"], ["last_sign_in_at", "2019-12-06 01:15:28.301349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.301815"], ["id", 729]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"645"}
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 645], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HoqGmMJfsQm9UNvykpuSAemwwvNZ8gtrgMk45rHGluDlxdv48q8Qi"], ["created_at", "2019-12-06 01:15:28.314302"], ["updated_at", "2019-12-06 01:15:28.314302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.316122"], ["updated_at", "2019-12-06 01:15:28.316122"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/646” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.318045"], ["last_sign_in_at", "2019-12-06 01:15:28.318045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.318488"], ["id", 730]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"646"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 646], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VrwYh8RWlp9IYqhRdxV6wuF6S0FpyjeiIhzr4zjSawi7qbBT5r9VS"], ["created_at", "2019-12-06 01:15:28.332301"], ["updated_at", "2019-12-06 01:15:28.332301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.334808"], ["last_sign_in_at", "2019-12-06 01:15:28.334808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.335298"], ["id", 731]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vZy3Sf8lpEevx4dKvGNJ7uxFaDOnv.1xTUKNxAAdOyWWPF4tT6Ybm"], ["created_at", "2019-12-06 01:15:28.345499"], ["updated_at", "2019-12-06 01:15:28.345499"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.347741"], ["updated_at", "2019-12-06 01:15:28.347741"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/647” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.349716"], ["last_sign_in_at", "2019-12-06 01:15:28.349716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.350246"], ["id", 732]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"647"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 647], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 647]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tJ6FtM7096PgQOCn1jIZVup1eUFhDJl.l6oYzlckwoaDWQmvkLW4m"], ["created_at", "2019-12-06 01:15:28.362565"], ["updated_at", "2019-12-06 01:15:28.362565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.364812"], ["updated_at", "2019-12-06 01:15:28.364812"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/648” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.366699"], ["last_sign_in_at", "2019-12-06 01:15:28.366699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.367350"], ["id", 733]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"648"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 648], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 648]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gsH0S5pSaxPzBktoojCYuujsLrooRooJPjDrcDJ5INjytEcyrvC.m"], ["created_at", "2019-12-06 01:15:28.377530"], ["updated_at", "2019-12-06 01:15:28.377530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.379606"], ["updated_at", "2019-12-06 01:15:28.379606"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/649” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.381446"], ["last_sign_in_at", "2019-12-06 01:15:28.381446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.381997"], ["id", 734]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"649"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vmKW9qy0gHOpOaM9gdyYQOv69f82C3Lbwd6kvlUvvqoexGiOUB/QK"], ["created_at", "2019-12-06 01:15:28.391739"], ["updated_at", "2019-12-06 01:15:28.391739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.394227"], ["updated_at", "2019-12-06 01:15:28.394227"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/650” for 127.0.0.1 at 2019-12-05 22:15:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.396213"], ["last_sign_in_at", "2019-12-06 01:15:28.396213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.396779"], ["id", 735]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"650"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:44.942409"], ["updated_at", "2019-12-06 01:29:44.942409"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$wvQwx659nRrGj9aGmAgfWO.zVwhVIVtQv2h2zm2qX2q607OBxMiQe"], ["created_at", "2019-12-06 01:29:44.992455"], ["updated_at", "2019-12-06 01:29:44.992455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.000437"], ["updated_at", "2019-12-06 01:29:45.000437"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VTca./m/wDWfVfIF9V9XFuCIVCw4VO23CQpv6tr.zZz.7foc2jBPa"], ["created_at", "2019-12-06 01:29:45.005077"], ["updated_at", "2019-12-06 01:29:45.005077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 652], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 737], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 737], ["room_id", 652], ["created_at", "2019-12-06 01:29:45.052568"], ["updated_at", "2019-12-06 01:29:45.052568"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.057875"], ["updated_at", "2019-12-06 01:29:45.057875"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Tip5E4BksiUKJJUk/XeRzOfGALYBDzAcxB7oayx4xn0ElKsGsRC62"], ["created_at", "2019-12-06 01:29:45.061832"], ["updated_at", "2019-12-06 01:29:45.061832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 653], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 738], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 738], ["room_id", 653], ["created_at", "2019-12-06 01:29:45.065939"], ["updated_at", "2019-12-06 01:29:45.065939"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.071449"], ["updated_at", "2019-12-06 01:29:45.071449"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7z//lAN1gHSXv9cAAJCnZ.zoOE5Q/0UHUP08R9ekohKGh26RkejVS"], ["created_at", "2019-12-06 01:29:45.075678"], ["updated_at", "2019-12-06 01:29:45.075678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 654], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 739], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 739], ["room_id", 654], ["created_at", "2019-12-06 01:29:45.079636"], ["updated_at", "2019-12-06 01:29:45.079636"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.085211"], ["updated_at", "2019-12-06 01:29:45.085211"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ztQh3382ZftI1E9g8MUE8.BL.MLeTGfTcxpmO42fz982qTqkoHP6a"], ["created_at", "2019-12-06 01:29:45.089317"], ["updated_at", "2019-12-06 01:29:45.089317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 655], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 740], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 740], ["room_id", 655], ["created_at", "2019-12-06 01:29:45.093280"], ["updated_at", "2019-12-06 01:29:45.093280"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 139ms (Views: 108.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7iUW5lP4xePnzzSPlB./NOhmv.qajhp2.yXNKQTjdbHO/od0UrLvm"], ["created_at", "2019-12-06 01:29:45.700137"], ["updated_at", "2019-12-06 01:29:45.700137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.702448"], ["updated_at", "2019-12-06 01:29:45.702448"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.718444"], ["last_sign_in_at", "2019-12-06 01:29:45.718444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.719081"], ["id", 741]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"656"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 656], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 741], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 741], ["room_id", 656], ["created_at", "2019-12-06 01:29:45.736323"], ["updated_at", "2019-12-06 01:29:45.736323"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 656], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$u1Vjum5B67M./K9eNxepjeac3M6M7p0tSzH9/KUVL.iGYFRnZ2Qh2"], ["created_at", "2019-12-06 01:29:45.746091"], ["updated_at", "2019-12-06 01:29:45.746091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.748365"], ["updated_at", "2019-12-06 01:29:45.748365"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.751204"], ["last_sign_in_at", "2019-12-06 01:29:45.751204"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.751770"], ["id", 742]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"657"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 657], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 742], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 742], ["room_id", 657], ["created_at", "2019-12-06 01:29:45.756620"], ["updated_at", "2019-12-06 01:29:45.756620"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Px0NTVBXBcZk8DvwoVXcB.OzUjpSBbAPcIoAXwP1rFMPqEB7yPSWy"], ["created_at", "2019-12-06 01:29:45.765180"], ["updated_at", "2019-12-06 01:29:45.765180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.767786"], ["updated_at", "2019-12-06 01:29:45.767786"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.770487"], ["last_sign_in_at", "2019-12-06 01:29:45.770487"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.771010"], ["id", 743]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"658"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 658], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KmiQyk0wlVlbIrzfomYWCeDeFpy8rZAlxdv3fWC22BYAWv4FqTl7m"], ["created_at", "2019-12-06 01:29:45.780212"], ["updated_at", "2019-12-06 01:29:45.780212"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.782503"], ["updated_at", "2019-12-06 01:29:45.782503"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.785193"], ["last_sign_in_at", "2019-12-06 01:29:45.785193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.785776"], ["id", 744]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"659"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ImynDvKyeUU.z0BxI.oxxujt9MnbVL6UDnsda.Aydh/zxvinvmGVW"], ["created_at", "2019-12-06 01:29:45.795597"], ["updated_at", "2019-12-06 01:29:45.795597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.797816"], ["updated_at", "2019-12-06 01:29:45.797816"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 660], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 745], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 745], ["room_id", 660], ["created_at", "2019-12-06 01:29:45.802162"], ["updated_at", "2019-12-06 01:29:45.802162"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/660” for 127.0.0.1 at 2019-12-05 22:29:45 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.804720"], ["last_sign_in_at", "2019-12-06 01:29:45.804720"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.805226"], ["id", 745]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"660"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 660], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '660')[0m
Rendered appointments/show.html.erb within layouts/application (24.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 346ms (Views: 328.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JKCuQRHUeE4ZRR7rYbRJCe7r.WHX7a3fnvZK4I/Y33AJNAWbayeUO"], ["created_at", "2019-12-06 01:29:46.160786"], ["updated_at", "2019-12-06 01:29:46.160786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.162954"], ["updated_at", "2019-12-06 01:29:46.162954"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 661], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 746], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 746], ["room_id", 661], ["created_at", "2019-12-06 01:29:46.167009"], ["updated_at", "2019-12-06 01:29:46.167009"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 661], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 746], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 746], ["room_id", 661], ["created_at", "2019-12-06 01:29:46.171232"], ["updated_at", "2019-12-06 01:29:46.171232"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.173478"], ["last_sign_in_at", "2019-12-06 01:29:46.173478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.173945"], ["id", 746]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 746]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$t3bWre.SEv5UYvdZb.16BOqNvBPueEFar7cwI0pxfDr/Fi6txQXUO"], ["created_at", "2019-12-06 01:29:46.217322"], ["updated_at", "2019-12-06 01:29:46.217322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.219527"], ["updated_at", "2019-12-06 01:29:46.219527"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 662], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 747], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 747], ["room_id", 662], ["created_at", "2019-12-06 01:29:46.223186"], ["updated_at", "2019-12-06 01:29:46.223186"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 662], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 747], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 747], ["room_id", 662], ["created_at", "2019-12-06 01:29:46.226739"], ["updated_at", "2019-12-06 01:29:46.226739"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.228825"], ["last_sign_in_at", "2019-12-06 01:29:46.228825"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.229271"], ["id", 747]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 747]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$spgg0V3ULEStDsmWqvx31uyIDe7N.LvyiXIaMQi8.bNr5JUfVLHTa"], ["created_at", "2019-12-06 01:29:46.254021"], ["updated_at", "2019-12-06 01:29:46.254021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.256052"], ["updated_at", "2019-12-06 01:29:46.256052"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 663], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 748], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 748], ["room_id", 663], ["created_at", "2019-12-06 01:29:46.259616"], ["updated_at", "2019-12-06 01:29:46.259616"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/309” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.261820"], ["last_sign_in_at", "2019-12-06 01:29:46.261820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.262340"], ["id", 748]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"309"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 309], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 309]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CWo/qCABbHomPxb5GGkSi.xV2QdqlAozEehCyMkdEz7SY7cgB1eQy"], ["created_at", "2019-12-06 01:29:46.276234"], ["updated_at", "2019-12-06 01:29:46.276234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.278524"], ["last_sign_in_at", "2019-12-06 01:29:46.278524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.279011"], ["id", 749]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V/2f8T5.NIej6oaeh1cBqOyOJqP.Rn2/cw1oHwRLCdSPraqb3CseS"], ["created_at", "2019-12-06 01:29:46.323112"], ["updated_at", "2019-12-06 01:29:46.323112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.325261"], ["updated_at", "2019-12-06 01:29:46.325261"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 664], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 750], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 750], ["room_id", 664], ["created_at", "2019-12-06 01:29:46.328905"], ["updated_at", "2019-12-06 01:29:46.328905"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 664], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 750], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 750], ["room_id", 664], ["created_at", "2019-12-06 01:29:46.332689"], ["updated_at", "2019-12-06 01:29:46.332689"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.335151"], ["last_sign_in_at", "2019-12-06 01:29:46.335151"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.335622"], ["id", 750]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 664], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 750], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 750], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9MLpvYLc2EvMx2ejYQY.merMW9saJnprPKLwNdZlSBLMsM5.NXWyW"], ["created_at", "2019-12-06 01:29:46.348304"], ["updated_at", "2019-12-06 01:29:46.348304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.350871"], ["updated_at", "2019-12-06 01:29:46.350871"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 665], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 751], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 751], ["room_id", 665], ["created_at", "2019-12-06 01:29:46.355610"], ["updated_at", "2019-12-06 01:29:46.355610"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 665], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 751], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 751], ["room_id", 665], ["created_at", "2019-12-06 01:29:46.360104"], ["updated_at", "2019-12-06 01:29:46.360104"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.362683"], ["last_sign_in_at", "2019-12-06 01:29:46.362683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.363273"], ["id", 751]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 665], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 751], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 751], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L11My.DaNoZiLkL6Rmq7luLl4HVwnIYHPE9jQb6WAXRZBZLiK2edm"], ["created_at", "2019-12-06 01:29:46.378930"], ["updated_at", "2019-12-06 01:29:46.378930"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.381168"], ["updated_at", "2019-12-06 01:29:46.381168"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 666], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 752], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 752], ["room_id", 666], ["created_at", "2019-12-06 01:29:46.386083"], ["updated_at", "2019-12-06 01:29:46.386083"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 666], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 752], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 752], ["room_id", 666], ["created_at", "2019-12-06 01:29:46.390816"], ["updated_at", "2019-12-06 01:29:46.390816"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.393164"], ["last_sign_in_at", "2019-12-06 01:29:46.393164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.393639"], ["id", 752]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FyamQTnYSOpqIj6f4laO3eL1dH0OBFoSF2c.9yMvrfFHJjFsnXO8."], ["created_at", "2019-12-06 01:29:46.405313"], ["updated_at", "2019-12-06 01:29:46.405313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.407444"], ["updated_at", "2019-12-06 01:29:46.407444"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 667], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 753], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 753], ["room_id", 667], ["created_at", "2019-12-06 01:29:46.411400"], ["updated_at", "2019-12-06 01:29:46.411400"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 667], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 753], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 753], ["room_id", 667], ["created_at", "2019-12-06 01:29:46.415358"], ["updated_at", "2019-12-06 01:29:46.415358"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.418219"], ["last_sign_in_at", "2019-12-06 01:29:46.418219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.418914"], ["id", 753]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O4zX8psLu6or6P7dNHaK1eiv0P0P4W6.IXqgX6CNsPdUWuY8kzA2u"], ["created_at", "2019-12-06 01:29:46.433100"], ["updated_at", "2019-12-06 01:29:46.433100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.436030"], ["last_sign_in_at", "2019-12-06 01:29:46.436030"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.436621"], ["id", 754]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.1ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 65ms (Views: 49.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CuUS6EzwjHUyXdUsgTBT5.pfa94JDe7uyA.EjXJFYZAJnyfkl/v.."], ["created_at", "2019-12-06 01:29:46.514149"], ["updated_at", "2019-12-06 01:29:46.514149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.517217"], ["last_sign_in_at", "2019-12-06 01:29:46.517217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.518053"], ["id", 755]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Fu.gz/l9JS/XBC9qalHeS./jUYALzHFvQHK4OVIyEHwwoubelsuoW"], ["created_at", "2019-12-06 01:29:46.529412"], ["updated_at", "2019-12-06 01:29:46.529412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.532413"], ["last_sign_in_at", "2019-12-06 01:29:46.532413"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.532921"], ["id", 756]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DxKnsqDNsjlRaumNIOEGFuTt7pL6fNHj2RK2NVzrjamR0NlRCfEMy"], ["created_at", "2019-12-06 01:29:46.563959"], ["updated_at", "2019-12-06 01:29:46.563959"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.566991"], ["last_sign_in_at", "2019-12-06 01:29:46.566991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.567560"], ["id", 757]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yd.dqQIc2xi3Ce6CCKK6be3KpdnnaEjJVvOAyD3NWkY.Qgbnn3MBq"], ["created_at", "2019-12-06 01:29:46.593683"], ["updated_at", "2019-12-06 01:29:46.593683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.596208"], ["updated_at", "2019-12-06 01:29:46.596208"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/668” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.598540"], ["last_sign_in_at", "2019-12-06 01:29:46.598540"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.599347"], ["id", 758]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"668"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 668], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UEn.DWAdhSdrRMuTPRjoG./yAG.CZiyB50iDNwO4c1GFCJpgWqmNq"], ["created_at", "2019-12-06 01:29:46.629436"], ["updated_at", "2019-12-06 01:29:46.629436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.631866"], ["updated_at", "2019-12-06 01:29:46.631866"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/669” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.634799"], ["last_sign_in_at", "2019-12-06 01:29:46.634799"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.635391"], ["id", 759]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"669"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 669], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.646828"], ["updated_at", "2019-12-06 01:29:46.646828"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/670” for 127.0.0.1 at 2019-12-05 22:29:46 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"670"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/ZjuG7353tHI.WiQCShqpO/wfLnLtJhx3JWtfUkTuO0/VJar8fDH2"], ["created_at", "2019-12-06 01:29:46.658705"], ["updated_at", "2019-12-06 01:29:46.658705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.661108"], ["updated_at", "2019-12-06 01:29:46.661108"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/671/edit” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.663764"], ["last_sign_in_at", "2019-12-06 01:29:46.663764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.664283"], ["id", 760]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"671"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 671], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 22ms (Views: 5.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eEoylTGbxoAJfpyKpsz.ue46muDnAZapMkVztb6FmilG/IJIoxLUm"], ["created_at", "2019-12-06 01:29:46.695961"], ["updated_at", "2019-12-06 01:29:46.695961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.698555"], ["updated_at", "2019-12-06 01:29:46.698555"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/672/edit” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.701541"], ["last_sign_in_at", "2019-12-06 01:29:46.701541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.702113"], ["id", 761]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"672"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 672], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.714210"], ["updated_at", "2019-12-06 01:29:46.714210"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/673” for 127.0.0.1 at 2019-12-05 22:29:46 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"673"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VWrDYqO6L438fDGiGVKe6e0HPE9FTgBqafLjQzHEYRb2wn2z5wciq"], ["created_at", "2019-12-06 01:29:46.726745"], ["updated_at", "2019-12-06 01:29:46.726745"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.729738"], ["last_sign_in_at", "2019-12-06 01:29:46.729738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.730730"], ["id", 762]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.734827"], ["updated_at", "2019-12-06 01:29:46.734827"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EQw6TpYC5fOSQMfzouOD4OgIgQkHkSdLXsAk5852GpBYbfeHJXR8m"], ["created_at", "2019-12-06 01:29:46.744153"], ["updated_at", "2019-12-06 01:29:46.744153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.747392"], ["last_sign_in_at", "2019-12-06 01:29:46.747392"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.747891"], ["id", 763]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.752285"], ["updated_at", "2019-12-06 01:29:46.752285"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3tfNzj4WbHg0mgCld6fU7uAFlSSL7ICdKIJK4itVAiXeU5pZZXiny"], ["created_at", "2019-12-06 01:29:46.761599"], ["updated_at", "2019-12-06 01:29:46.761599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.764681"], ["last_sign_in_at", "2019-12-06 01:29:46.764681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.765188"], ["id", 764]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tKU1Z/Q9stqUiRTjNDHujuU8f8JyEcDzSdTgRfdCGyIoqn0WBXA3C"], ["created_at", "2019-12-06 01:29:46.786703"], ["updated_at", "2019-12-06 01:29:46.786703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.789272"], ["last_sign_in_at", "2019-12-06 01:29:46.789272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.789856"], ["id", 765]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$maq3M08mhorYMsigYDaLQO.WutgoYGad4N9R9hLTyoG54L7S12kmu"], ["created_at", "2019-12-06 01:29:46.800914"], ["updated_at", "2019-12-06 01:29:46.800914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.803664"], ["last_sign_in_at", "2019-12-06 01:29:46.803664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.804269"], ["id", 766]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vZeY6QxC0A5508Dzz9wGCuihIuds54mPQqRcMLq5DM/mEnhuSd2XW"], ["created_at", "2019-12-06 01:29:46.815092"], ["updated_at", "2019-12-06 01:29:46.815092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.817621"], ["updated_at", "2019-12-06 01:29:46.817621"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/676” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.820272"], ["last_sign_in_at", "2019-12-06 01:29:46.820272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.820870"], ["id", 767]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"676"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 676], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:29:46.824747"], ["id", 676]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/676 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SDOLjSsCka9ojQ0WvN.0KuTGZsc1go.Ov7HyEolsVqgZnFzB5MvxW"], ["created_at", "2019-12-06 01:29:46.833306"], ["updated_at", "2019-12-06 01:29:46.833306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.836049"], ["updated_at", "2019-12-06 01:29:46.836049"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/677” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.838648"], ["last_sign_in_at", "2019-12-06 01:29:46.838648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.839197"], ["id", 768]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"677"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 677], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:29:46.843104"], ["id", 677]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/677 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dAQrr6//NpZKdRiUvUkrOONVnexineMVNJPGseB.5iHYRYsx/MQNi"], ["created_at", "2019-12-06 01:29:46.851870"], ["updated_at", "2019-12-06 01:29:46.851870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.854163"], ["updated_at", "2019-12-06 01:29:46.854163"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/678” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.856565"], ["last_sign_in_at", "2019-12-06 01:29:46.856565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.857099"], ["id", 769]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"678"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 678], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kxZpJqRBk1NCFpUmoa8skeTFrxR8ioUVEJ36V/GHYJKIfp1jF3yGe"], ["created_at", "2019-12-06 01:29:46.871885"], ["updated_at", "2019-12-06 01:29:46.871885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.874248"], ["updated_at", "2019-12-06 01:29:46.874248"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/679” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.876729"], ["last_sign_in_at", "2019-12-06 01:29:46.876729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.877297"], ["id", 770]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"679"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 679], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LZOlEwrTDy7ff43mRGhkcOCnSzcUEU1zIl0jUwPmLx9RSGOirSkAi"], ["created_at", "2019-12-06 01:29:46.891868"], ["updated_at", "2019-12-06 01:29:46.891868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.894306"], ["last_sign_in_at", "2019-12-06 01:29:46.894306"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.894804"], ["id", 771]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m/gpIzkcpD8bjRPTLOlZ5ePHwdyBsj0AoipwPbBO0mtXwWoEEW8cO"], ["created_at", "2019-12-06 01:29:46.903945"], ["updated_at", "2019-12-06 01:29:46.903945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.906160"], ["updated_at", "2019-12-06 01:29:46.906160"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/680” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.907982"], ["last_sign_in_at", "2019-12-06 01:29:46.907982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.908426"], ["id", 772]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"680"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 680], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 680]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$83kLSAHPPDeIrCD2KV0XKuwz9DizJMqSzfqvQ3M.ocwqn355HvtQG"], ["created_at", "2019-12-06 01:29:46.919005"], ["updated_at", "2019-12-06 01:29:46.919005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.921132"], ["updated_at", "2019-12-06 01:29:46.921132"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/681” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.922855"], ["last_sign_in_at", "2019-12-06 01:29:46.922855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.923350"], ["id", 773]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"681"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 681], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 681]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pDMnddulKWG9huT6Qe6YneXwvPCCcoI3omTMyMk4InKS4z1eGNEdS"], ["created_at", "2019-12-06 01:29:46.934627"], ["updated_at", "2019-12-06 01:29:46.934627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.936905"], ["updated_at", "2019-12-06 01:29:46.936905"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/682” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.938846"], ["last_sign_in_at", "2019-12-06 01:29:46.938846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.939341"], ["id", 774]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"682"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SMp9d51DL0ZOCzptZmvOJuCOZhGRxV7wXxCRNxSQO3W45YKA35KWG"], ["created_at", "2019-12-06 01:29:46.948374"], ["updated_at", "2019-12-06 01:29:46.948374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.951014"], ["updated_at", "2019-12-06 01:29:46.951014"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/683” for 127.0.0.1 at 2019-12-05 22:29:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.953135"], ["last_sign_in_at", "2019-12-06 01:29:46.953135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.953694"], ["id", 775]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"683"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:23.996869"], ["updated_at", "2019-12-06 01:33:23.996869"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xs85BfCSQ8UBIVE4TS4YduMhFD3PIL11/.3ItidMcv/ob9QeFznWS"], ["created_at", "2019-12-06 01:33:24.045408"], ["updated_at", "2019-12-06 01:33:24.045408"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.052489"], ["updated_at", "2019-12-06 01:33:24.052489"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$C.Wjg93BMAGBAhGgeEm00O/KqVWbkFU2lXjZyCG94DBRwk6oRMPLe"], ["created_at", "2019-12-06 01:33:24.056341"], ["updated_at", "2019-12-06 01:33:24.056341"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 685], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 777], ["LIMIT", 1]]
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 777], ["room_id", 685], ["created_at", "2019-12-06 01:33:24.103099"], ["updated_at", "2019-12-06 01:33:24.103099"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.109687"], ["updated_at", "2019-12-06 01:33:24.109687"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$o79jAMwJ6eK4b.0hjx8nHOTkuMf7pj4Ax/BbbmlQpa.mpqWIqnED6"], ["created_at", "2019-12-06 01:33:24.113777"], ["updated_at", "2019-12-06 01:33:24.113777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 686], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 778], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 778], ["room_id", 686], ["created_at", "2019-12-06 01:33:24.117990"], ["updated_at", "2019-12-06 01:33:24.117990"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.124189"], ["updated_at", "2019-12-06 01:33:24.124189"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$l7esq4xOheavAESg/cAUVO7mj4dV5ZC7JmYcgB5QAnpek/64ufscO"], ["created_at", "2019-12-06 01:33:24.128488"], ["updated_at", "2019-12-06 01:33:24.128488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 687], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 779], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 779], ["room_id", 687], ["created_at", "2019-12-06 01:33:24.132802"], ["updated_at", "2019-12-06 01:33:24.132802"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.138358"], ["updated_at", "2019-12-06 01:33:24.138358"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$XI2Ad23pc8q1SSJ/89ng5evfACY8V9GUZkP8dFSU9fXZtf3X2c4/C"], ["created_at", "2019-12-06 01:33:24.142743"], ["updated_at", "2019-12-06 01:33:24.142743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 688], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 780], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 780], ["room_id", 688], ["created_at", "2019-12-06 01:33:24.146942"], ["updated_at", "2019-12-06 01:33:24.146942"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 140ms (Views: 108.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$cem8/267oQJ1ePeZXSQu6O8.7kgZ4VUdm6up2cqXzfr/FvzPhVbWy"], ["created_at", "2019-12-06 01:33:24.740221"], ["updated_at", "2019-12-06 01:33:24.740221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.742447"], ["updated_at", "2019-12-06 01:33:24.742447"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.758605"], ["last_sign_in_at", "2019-12-06 01:33:24.758605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.759267"], ["id", 781]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"689"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 689], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 781], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 781], ["room_id", 689], ["created_at", "2019-12-06 01:33:24.775608"], ["updated_at", "2019-12-06 01:33:24.775608"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 689], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Hw/Xcgv/6mCKyLQYiDi83.5mzqd87MvORAf4VSl0eESlb/epQnHGW"], ["created_at", "2019-12-06 01:33:24.784702"], ["updated_at", "2019-12-06 01:33:24.784702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.786874"], ["updated_at", "2019-12-06 01:33:24.786874"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.789186"], ["last_sign_in_at", "2019-12-06 01:33:24.789186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.789732"], ["id", 782]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"690"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 690], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 782], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 782], ["room_id", 690], ["created_at", "2019-12-06 01:33:24.794500"], ["updated_at", "2019-12-06 01:33:24.794500"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KlewyUlL6VC.eGfna/z5GuBFpNFia4Dh5Sakp74A7XrtX5XZXisui"], ["created_at", "2019-12-06 01:33:24.802353"], ["updated_at", "2019-12-06 01:33:24.802353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.804583"], ["updated_at", "2019-12-06 01:33:24.804583"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.807014"], ["last_sign_in_at", "2019-12-06 01:33:24.807014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.807652"], ["id", 783]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"691"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 691], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2HhBcJuE3A5RDyRjY3fFLudXOq61N2BbCp3LZRDM8bAJ/eQqtuwGe"], ["created_at", "2019-12-06 01:33:24.817091"], ["updated_at", "2019-12-06 01:33:24.817091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.819061"], ["updated_at", "2019-12-06 01:33:24.819061"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.821270"], ["last_sign_in_at", "2019-12-06 01:33:24.821270"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.821820"], ["id", 784]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"692"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$nJSXI7AxgorNuX2xd2FoZeMi3MNEgnIv7ewoi7sm7rpQhezGNd/p2"], ["created_at", "2019-12-06 01:33:24.831659"], ["updated_at", "2019-12-06 01:33:24.831659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.833848"], ["updated_at", "2019-12-06 01:33:24.833848"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 693], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 785], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 785], ["room_id", 693], ["created_at", "2019-12-06 01:33:24.837319"], ["updated_at", "2019-12-06 01:33:24.837319"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/693” for 127.0.0.1 at 2019-12-05 22:33:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.839927"], ["last_sign_in_at", "2019-12-06 01:33:24.839927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.840516"], ["id", 785]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"693"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 693], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '693')[0m
Rendered appointments/show.html.erb within layouts/application (21.0ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 360ms (Views: 342.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$zbvMHJvcASwL2rbBBIiz2uUS1k7Hmaa2GJSWHi9.Ek8vog6B.A7qC"], ["created_at", "2019-12-06 01:33:25.210666"], ["updated_at", "2019-12-06 01:33:25.210666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.213010"], ["updated_at", "2019-12-06 01:33:25.213010"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 694], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 786], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 786], ["room_id", 694], ["created_at", "2019-12-06 01:33:25.217356"], ["updated_at", "2019-12-06 01:33:25.217356"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 694], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 786], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 786], ["room_id", 694], ["created_at", "2019-12-06 01:33:25.220966"], ["updated_at", "2019-12-06 01:33:25.220966"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.223097"], ["last_sign_in_at", "2019-12-06 01:33:25.223097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.223635"], ["id", 786]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 786]] Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3Tu2U3bc6XsdSumUAA4nMOo3vKBGQVywOcC/sb6FL2sMMdZc0HZKq"], ["created_at", "2019-12-06 01:33:25.266525"], ["updated_at", "2019-12-06 01:33:25.266525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.268479"], ["updated_at", "2019-12-06 01:33:25.268479"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 695], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 787], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 787], ["room_id", 695], ["created_at", "2019-12-06 01:33:25.272034"], ["updated_at", "2019-12-06 01:33:25.272034"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 695], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 787], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 787], ["room_id", 695], ["created_at", "2019-12-06 01:33:25.275986"], ["updated_at", "2019-12-06 01:33:25.275986"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.278349"], ["last_sign_in_at", "2019-12-06 01:33:25.278349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.278897"], ["id", 787]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 787]] Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3pR8/5rLZlPgasYqjNUePes1/MT84xnl/jgxZivfrIK5S/gHEm/X."], ["created_at", "2019-12-06 01:33:25.292742"], ["updated_at", "2019-12-06 01:33:25.292742"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.295013"], ["updated_at", "2019-12-06 01:33:25.295013"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 696], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 788], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 788], ["room_id", 696], ["created_at", "2019-12-06 01:33:25.311639"], ["updated_at", "2019-12-06 01:33:25.311639"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/329” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.313723"], ["last_sign_in_at", "2019-12-06 01:33:25.313723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.314207"], ["id", 788]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"329"}
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 329], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 329]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ko6AQGEQbpIgLo.2uXLcxe.HxlCokQZoNxDkGKBBMaLIKxHntjTxC"], ["created_at", "2019-12-06 01:33:25.327435"], ["updated_at", "2019-12-06 01:33:25.327435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.329741"], ["last_sign_in_at", "2019-12-06 01:33:25.329741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.330306"], ["id", 789]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9GnA.Ztx/g4850MzQ7EsqeEp1eew9DmyfBzCef9oE1YQYjhGw7g1i"], ["created_at", "2019-12-06 01:33:25.374829"], ["updated_at", "2019-12-06 01:33:25.374829"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.377038"], ["updated_at", "2019-12-06 01:33:25.377038"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 697], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 790], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 790], ["room_id", 697], ["created_at", "2019-12-06 01:33:25.380830"], ["updated_at", "2019-12-06 01:33:25.380830"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 697], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 790], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 790], ["room_id", 697], ["created_at", "2019-12-06 01:33:25.384887"], ["updated_at", "2019-12-06 01:33:25.384887"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.387196"], ["last_sign_in_at", "2019-12-06 01:33:25.387196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.387785"], ["id", 790]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 697], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 790], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 790], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$msIZRchTFf9M2lrx.TX8deP1Ki8ogSfsIOIVjpsgEsuzAH.dKxrHe"], ["created_at", "2019-12-06 01:33:25.401373"], ["updated_at", "2019-12-06 01:33:25.401373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.403564"], ["updated_at", "2019-12-06 01:33:25.403564"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 698], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 791], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 791], ["room_id", 698], ["created_at", "2019-12-06 01:33:25.407625"], ["updated_at", "2019-12-06 01:33:25.407625"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 698], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 791], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 791], ["room_id", 698], ["created_at", "2019-12-06 01:33:25.411728"], ["updated_at", "2019-12-06 01:33:25.411728"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.414068"], ["last_sign_in_at", "2019-12-06 01:33:25.414068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.414587"], ["id", 791]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 698], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 791], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 791], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Bbk/6j73JTxXncJsgcg/WenKNlPbVEDUtNkP4/gCOZaJLd9l9X/Kq"], ["created_at", "2019-12-06 01:33:25.429351"], ["updated_at", "2019-12-06 01:33:25.429351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.431574"], ["updated_at", "2019-12-06 01:33:25.431574"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 699], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 792], ["room_id", 699], ["created_at", "2019-12-06 01:33:25.435328"], ["updated_at", "2019-12-06 01:33:25.435328"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 699], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 792], ["room_id", 699], ["created_at", "2019-12-06 01:33:25.439241"], ["updated_at", "2019-12-06 01:33:25.439241"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.442230"], ["last_sign_in_at", "2019-12-06 01:33:25.442230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.442775"], ["id", 792]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ajQH3QWR4PIE2elaxrHDb.likC4QRKmpSZJNKffGgXiyiRgJ4cZLe"], ["created_at", "2019-12-06 01:33:25.454091"], ["updated_at", "2019-12-06 01:33:25.454091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.456334"], ["updated_at", "2019-12-06 01:33:25.456334"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 700], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 793], ["room_id", 700], ["created_at", "2019-12-06 01:33:25.460700"], ["updated_at", "2019-12-06 01:33:25.460700"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 700], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 793], ["room_id", 700], ["created_at", "2019-12-06 01:33:25.464660"], ["updated_at", "2019-12-06 01:33:25.464660"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.466989"], ["last_sign_in_at", "2019-12-06 01:33:25.466989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.467541"], ["id", 793]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vtrtg45/iyukw6O3YqnR2O37D0fu1uKAD/rrD/X60133VIbao9Gs6"], ["created_at", "2019-12-06 01:33:25.481662"], ["updated_at", "2019-12-06 01:33:25.481662"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.484067"], ["last_sign_in_at", "2019-12-06 01:33:25.484067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.484644"], ["id", 794]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 62ms (Views: 46.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CDRM3eTMW6WlVoGq.euhE.oBghIPrNBh5Rh8GXcjBkSsc8LI3RhD."], ["created_at", "2019-12-06 01:33:25.560142"], ["updated_at", "2019-12-06 01:33:25.560142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.562541"], ["last_sign_in_at", "2019-12-06 01:33:25.562541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.563059"], ["id", 795]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mg6PjMyk08ET/NOs./I6uOIMAJiu6iOMk50o.zG5p9Dd/IEuxIPLC"], ["created_at", "2019-12-06 01:33:25.573144"], ["updated_at", "2019-12-06 01:33:25.573144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.576575"], ["last_sign_in_at", "2019-12-06 01:33:25.576575"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.577105"], ["id", 796]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ib3l1Tg8WucHnGEnK0Qzqub.VZ8ahM7VlvcCC.UvcUOyboDF6z3DO"], ["created_at", "2019-12-06 01:33:25.607824"], ["updated_at", "2019-12-06 01:33:25.607824"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.610665"], ["last_sign_in_at", "2019-12-06 01:33:25.610665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.611256"], ["id", 797]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ssh0eccpdAHgR/gVE/2Qz.OqP4EynSfdUpFpz0no2uP6ke2FxOuE."], ["created_at", "2019-12-06 01:33:25.635690"], ["updated_at", "2019-12-06 01:33:25.635690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.640489"], ["updated_at", "2019-12-06 01:33:25.640489"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/701” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.643372"], ["last_sign_in_at", "2019-12-06 01:33:25.643372"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.643887"], ["id", 798]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"701"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 701], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yP0ge5rxJAuhM5xMldtzTupn76P52N8Zw0dLWKnGPI6k0bUDteqfC"], ["created_at", "2019-12-06 01:33:25.672367"], ["updated_at", "2019-12-06 01:33:25.672367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.675608"], ["updated_at", "2019-12-06 01:33:25.675608"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/702” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.678040"], ["last_sign_in_at", "2019-12-06 01:33:25.678040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.678810"], ["id", 799]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"702"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 702], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.689868"], ["updated_at", "2019-12-06 01:33:25.689868"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/703” for 127.0.0.1 at 2019-12-05 22:33:25 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"703"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$siHTjNE00PfaPKThq9sExO38CpOT4IHV6pTxYjEk0Lq4iHHSxRdXq"], ["created_at", "2019-12-06 01:33:25.702090"], ["updated_at", "2019-12-06 01:33:25.702090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.704934"], ["updated_at", "2019-12-06 01:33:25.704934"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/704/edit” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.707996"], ["last_sign_in_at", "2019-12-06 01:33:25.707996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.708792"], ["id", 800]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"704"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 704], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DuH/1SySJRGUp0gD117yruZDDfw4JMbZmNtTKUT3LDtdUkrjwi56e"], ["created_at", "2019-12-06 01:33:25.739187"], ["updated_at", "2019-12-06 01:33:25.739187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.741994"], ["updated_at", "2019-12-06 01:33:25.741994"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/705/edit” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.744036"], ["last_sign_in_at", "2019-12-06 01:33:25.744036"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.744794"], ["id", 801]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"705"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 705], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.757059"], ["updated_at", "2019-12-06 01:33:25.757059"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/706” for 127.0.0.1 at 2019-12-05 22:33:25 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"706"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QsNWNA8DEH.NF3tseOugwekM2PU9S64fGiaLaW69JlEhtbTq1Wiai"], ["created_at", "2019-12-06 01:33:25.769014"], ["updated_at", "2019-12-06 01:33:25.769014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.772039"], ["last_sign_in_at", "2019-12-06 01:33:25.772039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.772575"], ["id", 802]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.776689"], ["updated_at", "2019-12-06 01:33:25.776689"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j3JLPLToQ/qFbv.xamk.nePp9oXR3UqqMc8dcFD9b1Mlvsp6WEEXy"], ["created_at", "2019-12-06 01:33:25.784750"], ["updated_at", "2019-12-06 01:33:25.784750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.787518"], ["last_sign_in_at", "2019-12-06 01:33:25.787518"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.788357"], ["id", 803]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.792408"], ["updated_at", "2019-12-06 01:33:25.792408"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6pz3tjIn/zF7o3aAyt0gvuOu8wszpUSZFJtrcJOebC4PtLgBPa2SG"], ["created_at", "2019-12-06 01:33:25.800925"], ["updated_at", "2019-12-06 01:33:25.800925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.804118"], ["last_sign_in_at", "2019-12-06 01:33:25.804118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.804703"], ["id", 804]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vt6qaRB/KGI2J/4a6ekrned2LqL1zvMhds5cBUB2icLHa6DhwzLVi"], ["created_at", "2019-12-06 01:33:25.816750"], ["updated_at", "2019-12-06 01:33:25.816750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.820093"], ["last_sign_in_at", "2019-12-06 01:33:25.820093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.820582"], ["id", 805]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lo1Ls0QYNYEq5w2RuI5qqeZtU9SAfvTGKSxp79zAH8cKnTrCtIm.m"], ["created_at", "2019-12-06 01:33:25.832581"], ["updated_at", "2019-12-06 01:33:25.832581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.844253"], ["last_sign_in_at", "2019-12-06 01:33:25.844253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.844736"], ["id", 806]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r1eu0piN3TovIZy9z8xl6.DUaHPQDu0tVI9OFwyglGfvOnFCfPvra"], ["created_at", "2019-12-06 01:33:25.854734"], ["updated_at", "2019-12-06 01:33:25.854734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.857117"], ["updated_at", "2019-12-06 01:33:25.857117"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/709” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.860096"], ["last_sign_in_at", "2019-12-06 01:33:25.860096"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.860606"], ["id", 807]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"709"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 709], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:33:25.864269"], ["id", 709]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/709 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iCcG1pYTr77mSk7iwOR/ouD9W3KWEsKAv9uJKXnGcf38vfiacLBIm"], ["created_at", "2019-12-06 01:33:25.871980"], ["updated_at", "2019-12-06 01:33:25.871980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.874746"], ["updated_at", "2019-12-06 01:33:25.874746"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/710” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.877112"], ["last_sign_in_at", "2019-12-06 01:33:25.877112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.877656"], ["id", 808]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"710"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 710], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:33:25.881224"], ["id", 710]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/710 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NmGN/8itpKQMf9QQsmu4QOTJccjndS/P9h.ASoRls.dkHPYsRGc26"], ["created_at", "2019-12-06 01:33:25.890953"], ["updated_at", "2019-12-06 01:33:25.890953"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.893444"], ["updated_at", "2019-12-06 01:33:25.893444"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/711” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.895779"], ["last_sign_in_at", "2019-12-06 01:33:25.895779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.896278"], ["id", 809]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"711"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 711], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aLydXaY/wwTdM4jKoqcHhOuUo2V7CufqHai./xYEriJnhpqzlDAo2"], ["created_at", "2019-12-06 01:33:25.910541"], ["updated_at", "2019-12-06 01:33:25.910541"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.912774"], ["updated_at", "2019-12-06 01:33:25.912774"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/712” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.915271"], ["last_sign_in_at", "2019-12-06 01:33:25.915271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.915848"], ["id", 810]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"712"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 712], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GwgXFgsnheHwBQiOV3p5YuWNBoVqnKPkmY9H4Vm9fcwVV.TVbHXDC"], ["created_at", "2019-12-06 01:33:25.930142"], ["updated_at", "2019-12-06 01:33:25.930142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.932787"], ["last_sign_in_at", "2019-12-06 01:33:25.932787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.933273"], ["id", 811]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$neEJkXi5HqdIsgKYBfTc3OQAZtfBuDVt5nMmSolBe4T6bfprTI5u6"], ["created_at", "2019-12-06 01:33:25.944107"], ["updated_at", "2019-12-06 01:33:25.944107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.946471"], ["updated_at", "2019-12-06 01:33:25.946471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/713” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.948412"], ["last_sign_in_at", "2019-12-06 01:33:25.948412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.948896"], ["id", 812]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"713"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 713], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 713]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8xmA.ivMeINjTXExgbKI1et5.3PwPEwh1bavTF1hLkcRdm.6a6ZHi"], ["created_at", "2019-12-06 01:33:25.960240"], ["updated_at", "2019-12-06 01:33:25.960240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.962564"], ["updated_at", "2019-12-06 01:33:25.962564"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/714” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.964704"], ["last_sign_in_at", "2019-12-06 01:33:25.964704"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.965244"], ["id", 813]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"714"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 714], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 714]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hmfUNQsO/9VYeo1EG6iKae3D8YrzruLQPOiUh2E8DpeIOam4E7ZVK"], ["created_at", "2019-12-06 01:33:25.977171"], ["updated_at", "2019-12-06 01:33:25.977171"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.979338"], ["updated_at", "2019-12-06 01:33:25.979338"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/715” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.981126"], ["last_sign_in_at", "2019-12-06 01:33:25.981126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.981616"], ["id", 814]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"715"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bFKOoyu/aMWi3toa9SotmOWyvHo2GgyIPFNVeZ8yOhiK9bcQghXju"], ["created_at", "2019-12-06 01:33:25.992040"], ["updated_at", "2019-12-06 01:33:25.992040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.994660"], ["updated_at", "2019-12-06 01:33:25.994660"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/716” for 127.0.0.1 at 2019-12-05 22:33:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.996739"], ["last_sign_in_at", "2019-12-06 01:33:25.996739"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.997296"], ["id", 815]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"716"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.856339"], ["updated_at", "2019-12-06 01:34:48.856339"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Dz4ZIkYl1MbrYmuLWk8jru05iGtOGfzu2u.Ento.cCwcCl3rphR9W"], ["created_at", "2019-12-06 01:34:48.905366"], ["updated_at", "2019-12-06 01:34:48.905366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.912544"], ["updated_at", "2019-12-06 01:34:48.912544"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q58rDbBnpo/ckm8l/pXwYuCQVg6QeTUAy8B3BOtWTY57FlnRV1ONi"], ["created_at", "2019-12-06 01:34:48.917179"], ["updated_at", "2019-12-06 01:34:48.917179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 718], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 817], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 817], ["room_id", 718], ["created_at", "2019-12-06 01:34:48.964116"], ["updated_at", "2019-12-06 01:34:48.964116"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.970018"], ["updated_at", "2019-12-06 01:34:48.970018"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$UAu8z12GOiF/6E0Q8izHBOxE8XVsckwNqLUV6UXhDsnLPJaMJaMOW"], ["created_at", "2019-12-06 01:34:48.973912"], ["updated_at", "2019-12-06 01:34:48.973912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 719], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 818], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 818], ["room_id", 719], ["created_at", "2019-12-06 01:34:48.978076"], ["updated_at", "2019-12-06 01:34:48.978076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.984142"], ["updated_at", "2019-12-06 01:34:48.984142"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xAzsZw1ZzX238Lcb.inFZeDwPRvWPA04BayKcLCAeqn3tLBPAHysi"], ["created_at", "2019-12-06 01:34:48.988141"], ["updated_at", "2019-12-06 01:34:48.988141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 720], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 819], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 819], ["room_id", 720], ["created_at", "2019-12-06 01:34:48.992353"], ["updated_at", "2019-12-06 01:34:48.992353"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.998724"], ["updated_at", "2019-12-06 01:34:48.998724"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ax2o758i1gFANlHZVNLL6eK16yl9k0DjuM0m9t7rTeC.U6HH/a2.W"], ["created_at", "2019-12-06 01:34:49.003037"], ["updated_at", "2019-12-06 01:34:49.003037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 721], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 820], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 820], ["room_id", 721], ["created_at", "2019-12-06 01:34:49.007036"], ["updated_at", "2019-12-06 01:34:49.007036"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.4ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 138ms (Views: 107.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0qrE0uNdtGRXUNFAM7bT5OciDxNECKTX6C2xUmFiLcJP4s.DPiou2"], ["created_at", "2019-12-06 01:34:49.600075"], ["updated_at", "2019-12-06 01:34:49.600075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.602273"], ["updated_at", "2019-12-06 01:34:49.602273"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.618184"], ["last_sign_in_at", "2019-12-06 01:34:49.618184"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.618833"], ["id", 821]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"722"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 722], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 821], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 821], ["room_id", 722], ["created_at", "2019-12-06 01:34:49.636768"], ["updated_at", "2019-12-06 01:34:49.636768"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 722], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$66ZsRfgX9ec9btdGZQAdUu99Bk0au5fCHHDVWy8gPRSdfqmtK1pyK"], ["created_at", "2019-12-06 01:34:49.646312"], ["updated_at", "2019-12-06 01:34:49.646312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.648587"], ["updated_at", "2019-12-06 01:34:49.648587"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.651001"], ["last_sign_in_at", "2019-12-06 01:34:49.651001"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.651523"], ["id", 822]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"723"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 723], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 822], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 822], ["room_id", 723], ["created_at", "2019-12-06 01:34:49.656222"], ["updated_at", "2019-12-06 01:34:49.656222"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$XKfEzfnC9lQKYUVKCWAA4e962O65dxPII4xih0S46tPE7Aa/ymtGS"], ["created_at", "2019-12-06 01:34:49.664398"], ["updated_at", "2019-12-06 01:34:49.664398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.666345"], ["updated_at", "2019-12-06 01:34:49.666345"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.668569"], ["last_sign_in_at", "2019-12-06 01:34:49.668569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.669117"], ["id", 823]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"724"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 724], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$QPsWvjyka0i5vi30Z8WPA.aIptPVF6o0VGIG1YXrIUdrreMxGEpDS"], ["created_at", "2019-12-06 01:34:49.677600"], ["updated_at", "2019-12-06 01:34:49.677600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.679811"], ["updated_at", "2019-12-06 01:34:49.679811"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.682032"], ["last_sign_in_at", "2019-12-06 01:34:49.682032"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.682520"], ["id", 824]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"725"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$487qaX/355PA.TqzJKJim.Sr9qBmrxGujkvVJHzYxKwsWXqMvBM6m"], ["created_at", "2019-12-06 01:34:49.691455"], ["updated_at", "2019-12-06 01:34:49.691455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.693875"], ["updated_at", "2019-12-06 01:34:49.693875"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 726], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 825], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 825], ["room_id", 726], ["created_at", "2019-12-06 01:34:49.698217"], ["updated_at", "2019-12-06 01:34:49.698217"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/726” for 127.0.0.1 at 2019-12-05 22:34:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.700552"], ["last_sign_in_at", "2019-12-06 01:34:49.700552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.701054"], ["id", 825]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"726"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 726], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '726')[0m
Rendered appointments/show.html.erb within layouts/application (21.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 348ms (Views: 330.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kan2w0WlJHZQ/TO0dde6ceLM1BJ0elL9K8rFvdDP80NTI7JjIH5pi"], ["created_at", "2019-12-06 01:34:50.059001"], ["updated_at", "2019-12-06 01:34:50.059001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.061755"], ["updated_at", "2019-12-06 01:34:50.061755"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 727], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 826], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 826], ["room_id", 727], ["created_at", "2019-12-06 01:34:50.065619"], ["updated_at", "2019-12-06 01:34:50.065619"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 727], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 826], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 826], ["room_id", 727], ["created_at", "2019-12-06 01:34:50.069374"], ["updated_at", "2019-12-06 01:34:50.069374"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.071681"], ["last_sign_in_at", "2019-12-06 01:34:50.071681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.072215"], ["id", 826]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 826]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 35ms (Views: 4.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$txCWUArog1CLtY8YLCYBAOh1S6G.9sT0C0YlhAFfUokqfEFutvkry"], ["created_at", "2019-12-06 01:34:50.116013"], ["updated_at", "2019-12-06 01:34:50.116013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.118219"], ["updated_at", "2019-12-06 01:34:50.118219"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 728], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 827], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 827], ["room_id", 728], ["created_at", "2019-12-06 01:34:50.122028"], ["updated_at", "2019-12-06 01:34:50.122028"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 728], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 827], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 827], ["room_id", 728], ["created_at", "2019-12-06 01:34:50.125892"], ["updated_at", "2019-12-06 01:34:50.125892"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.128459"], ["last_sign_in_at", "2019-12-06 01:34:50.128459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.128964"], ["id", 827]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 827]] Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ih0UNdXfBTbZi4SPOncyyOml.w05zYRLkFmw1P9049vyrugq.zMoC"], ["created_at", "2019-12-06 01:34:50.142485"], ["updated_at", "2019-12-06 01:34:50.142485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.145283"], ["updated_at", "2019-12-06 01:34:50.145283"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 729], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 828], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 828], ["room_id", 729], ["created_at", "2019-12-06 01:34:50.161776"], ["updated_at", "2019-12-06 01:34:50.161776"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/349” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.164180"], ["last_sign_in_at", "2019-12-06 01:34:50.164180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.164769"], ["id", 828]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"349"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 349], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 349]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SnDs..sno7PnL1n/AaCtPeKmUERMPrgqG.6mUl54VM.auIPQHpwKG"], ["created_at", "2019-12-06 01:34:50.179349"], ["updated_at", "2019-12-06 01:34:50.179349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.181820"], ["last_sign_in_at", "2019-12-06 01:34:50.181820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.182343"], ["id", 829]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3C.4WCWrv5oy13aYP9/zrO6l6qt7eMP2yXKmAUQmMsPSSS1XT4EFC"], ["created_at", "2019-12-06 01:34:50.225835"], ["updated_at", "2019-12-06 01:34:50.225835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.228249"], ["updated_at", "2019-12-06 01:34:50.228249"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 730], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 830], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 830], ["room_id", 730], ["created_at", "2019-12-06 01:34:50.232060"], ["updated_at", "2019-12-06 01:34:50.232060"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 730], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 830], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 830], ["room_id", 730], ["created_at", "2019-12-06 01:34:50.235882"], ["updated_at", "2019-12-06 01:34:50.235882"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.238193"], ["last_sign_in_at", "2019-12-06 01:34:50.238193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.238679"], ["id", 830]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 730], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 830], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 830], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Jmv16LCXiqiZtl2odV15denzgj/cdsbHtmslxCwhFj9spLWUSWURe"], ["created_at", "2019-12-06 01:34:50.252153"], ["updated_at", "2019-12-06 01:34:50.252153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.254486"], ["updated_at", "2019-12-06 01:34:50.254486"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 731], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 831], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 831], ["room_id", 731], ["created_at", "2019-12-06 01:34:50.258409"], ["updated_at", "2019-12-06 01:34:50.258409"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 731], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 831], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 831], ["room_id", 731], ["created_at", "2019-12-06 01:34:50.262755"], ["updated_at", "2019-12-06 01:34:50.262755"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.265123"], ["last_sign_in_at", "2019-12-06 01:34:50.265123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.265608"], ["id", 831]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 731], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 831], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 831], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SmO8a2gZg9wCYGtZGfCLmOL8TEoGmov9J0CdftN1Gwz3N71rLmPlO"], ["created_at", "2019-12-06 01:34:50.280315"], ["updated_at", "2019-12-06 01:34:50.280315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.282529"], ["updated_at", "2019-12-06 01:34:50.282529"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 732], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 832], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 832], ["room_id", 732], ["created_at", "2019-12-06 01:34:50.286371"], ["updated_at", "2019-12-06 01:34:50.286371"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 732], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 832], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 832], ["room_id", 732], ["created_at", "2019-12-06 01:34:50.290264"], ["updated_at", "2019-12-06 01:34:50.290264"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.292789"], ["last_sign_in_at", "2019-12-06 01:34:50.292789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.293546"], ["id", 832]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XJlfe51lFYb4a.SMCb0Vc.7ROPAK1Go9qBk/vSQeoDj74UL08x.3O"], ["created_at", "2019-12-06 01:34:50.304734"], ["updated_at", "2019-12-06 01:34:50.304734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.307201"], ["updated_at", "2019-12-06 01:34:50.307201"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 733], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 833], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 833], ["room_id", 733], ["created_at", "2019-12-06 01:34:50.311555"], ["updated_at", "2019-12-06 01:34:50.311555"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 733], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 833], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 833], ["room_id", 733], ["created_at", "2019-12-06 01:34:50.315539"], ["updated_at", "2019-12-06 01:34:50.315539"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.317946"], ["last_sign_in_at", "2019-12-06 01:34:50.317946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.318464"], ["id", 833]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GSKJFhOmjYRprQ5g757ZQeUEshAWrJhIIDM7WXCR9XpPbgtxwL2SS"], ["created_at", "2019-12-06 01:34:50.332556"], ["updated_at", "2019-12-06 01:34:50.332556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.335039"], ["last_sign_in_at", "2019-12-06 01:34:50.335039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.335604"], ["id", 834]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 62ms (Views: 46.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$diUnv4xe3ZsVaDJWiQLROuEGOVxWoicPa6kGnVvB6c4/J5gGDDX7C"], ["created_at", "2019-12-06 01:34:50.409313"], ["updated_at", "2019-12-06 01:34:50.409313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.411793"], ["last_sign_in_at", "2019-12-06 01:34:50.411793"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.412309"], ["id", 835]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KPBLE5yP0WLf91zgQZefdOJDRC9iCMdAhPlLsw2HIOeD8jFoI/BMy"], ["created_at", "2019-12-06 01:34:50.423301"], ["updated_at", "2019-12-06 01:34:50.423301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.426232"], ["last_sign_in_at", "2019-12-06 01:34:50.426232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.426926"], ["id", 836]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.5ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QDbfvSsqE1DaRVCUmUJei.vjMtkAxl2o229GZBMDbS0XO9fKdqCm6"], ["created_at", "2019-12-06 01:34:50.457246"], ["updated_at", "2019-12-06 01:34:50.457246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.460026"], ["last_sign_in_at", "2019-12-06 01:34:50.460026"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.460583"], ["id", 837]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rc3GBnP5DgeFTbBDcj2EU.N46YpQJ1fljyrUvB4jzAcBgrVmbYFBm"], ["created_at", "2019-12-06 01:34:50.486144"], ["updated_at", "2019-12-06 01:34:50.486144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.488515"], ["updated_at", "2019-12-06 01:34:50.488515"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/734” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.491089"], ["last_sign_in_at", "2019-12-06 01:34:50.491089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.491602"], ["id", 838]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"734"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 734], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0KtSoKIgFw2A6z89jU.IruMdrVUCsVS96.Mcr.YMYp4.k8Tw04rC6"], ["created_at", "2019-12-06 01:34:50.522502"], ["updated_at", "2019-12-06 01:34:50.522502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.525087"], ["updated_at", "2019-12-06 01:34:50.525087"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/735” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.527757"], ["last_sign_in_at", "2019-12-06 01:34:50.527757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.528298"], ["id", 839]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"735"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 735], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.539141"], ["updated_at", "2019-12-06 01:34:50.539141"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/736” for 127.0.0.1 at 2019-12-05 22:34:50 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"736"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1YXVP6dVnVyCqeJYK2tN/eVR0mvA2aX4ebOimKiMNBXIyJl5YujAm"], ["created_at", "2019-12-06 01:34:50.550892"], ["updated_at", "2019-12-06 01:34:50.550892"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.553449"], ["updated_at", "2019-12-06 01:34:50.553449"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/737/edit” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.555836"], ["last_sign_in_at", "2019-12-06 01:34:50.555836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.556328"], ["id", 840]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"737"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 737], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1G/z4LsraNtV0PKhpUVmneEnNqwcfZiB/xj28bXKVHH5SU.JHaWLu"], ["created_at", "2019-12-06 01:34:50.586298"], ["updated_at", "2019-12-06 01:34:50.586298"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.588222"], ["updated_at", "2019-12-06 01:34:50.588222"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/738/edit” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.590197"], ["last_sign_in_at", "2019-12-06 01:34:50.590197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.590901"], ["id", 841]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"738"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 738], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.602550"], ["updated_at", "2019-12-06 01:34:50.602550"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/739” for 127.0.0.1 at 2019-12-05 22:34:50 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"739"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IeVf/4PWOe2sCQTVVUeia.ON1PyeHAROm2uf8UsYlM3ZNHVrgayBa"], ["created_at", "2019-12-06 01:34:50.614227"], ["updated_at", "2019-12-06 01:34:50.614227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.617349"], ["last_sign_in_at", "2019-12-06 01:34:50.617349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.617966"], ["id", 842]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.621546"], ["updated_at", "2019-12-06 01:34:50.621546"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$40pBpr3t18CYdVtTvE7WN.tBzyXhebZP0Z0R8y7Yzg.E/GhlLp6.m"], ["created_at", "2019-12-06 01:34:50.631293"], ["updated_at", "2019-12-06 01:34:50.631293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.634288"], ["last_sign_in_at", "2019-12-06 01:34:50.634288"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.634792"], ["id", 843]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.638574"], ["updated_at", "2019-12-06 01:34:50.638574"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kdyOI3cQFYaCU6Id8DsEkuYr5lQDpIuxmcyjqJHc/GiTmgR6USq8a"], ["created_at", "2019-12-06 01:34:50.647637"], ["updated_at", "2019-12-06 01:34:50.647637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.650390"], ["last_sign_in_at", "2019-12-06 01:34:50.650390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.650848"], ["id", 844]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ma0cNSmWKbrsAMvxCCr4aOrRnv2.duIayd8ORYS/WCBBeUqp098eK"], ["created_at", "2019-12-06 01:34:50.662729"], ["updated_at", "2019-12-06 01:34:50.662729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.665535"], ["last_sign_in_at", "2019-12-06 01:34:50.665535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.666022"], ["id", 845]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8OnPXJ1vg8QZpdgEL666J.CI3SYuXUngE4yaAwHOud2cKDwUPTk0O"], ["created_at", "2019-12-06 01:34:50.686272"], ["updated_at", "2019-12-06 01:34:50.686272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.688829"], ["last_sign_in_at", "2019-12-06 01:34:50.688829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.689329"], ["id", 846]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4CZT.ynYpHNrxechkEfE0ORufPEnyhbiN8FRjVH.Kbr8K2HuNEgGO"], ["created_at", "2019-12-06 01:34:50.700141"], ["updated_at", "2019-12-06 01:34:50.700141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.702382"], ["updated_at", "2019-12-06 01:34:50.702382"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/742” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.704636"], ["last_sign_in_at", "2019-12-06 01:34:50.704636"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.705156"], ["id", 847]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"742"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 742], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:34:50.708903"], ["id", 742]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/742 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G2mRwekMPptbsnqNQFLzZuWIZaEH2KPOxCe1eg1Tqzds2DwWPWyB."], ["created_at", "2019-12-06 01:34:50.717598"], ["updated_at", "2019-12-06 01:34:50.717598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.719725"], ["updated_at", "2019-12-06 01:34:50.719725"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/743” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.721921"], ["last_sign_in_at", "2019-12-06 01:34:50.721921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.722464"], ["id", 848]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"743"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 743], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:34:50.726412"], ["id", 743]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/743 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CN9bFH7rLrX4FsF.yTgLe.LfN.ZXR2ZS4CYcgWY4jrXt8vdnwKinm"], ["created_at", "2019-12-06 01:34:50.735632"], ["updated_at", "2019-12-06 01:34:50.735632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.737960"], ["updated_at", "2019-12-06 01:34:50.737960"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/744” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.740180"], ["last_sign_in_at", "2019-12-06 01:34:50.740180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.740754"], ["id", 849]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"744"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 744], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JLadtLCptvkgtm/z1R9KEOJAGnMMR2sp27PPmRjXsty5Xv7HIssh2"], ["created_at", "2019-12-06 01:34:50.754841"], ["updated_at", "2019-12-06 01:34:50.754841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.757153"], ["updated_at", "2019-12-06 01:34:50.757153"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/745” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.759345"], ["last_sign_in_at", "2019-12-06 01:34:50.759345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.760162"], ["id", 850]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"745"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 745], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$54KNGW4xvH/eIx.E3yWVM.h1xbP76yEueYt2xvdEViafcAA/kTkFe"], ["created_at", "2019-12-06 01:34:50.774349"], ["updated_at", "2019-12-06 01:34:50.774349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.777233"], ["last_sign_in_at", "2019-12-06 01:34:50.777233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.777869"], ["id", 851]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fbTPPiK13z.xsRiaXAjcwey2h5yceK8THR/f3l5GXhV.sSuUUt3Vq"], ["created_at", "2019-12-06 01:34:50.787601"], ["updated_at", "2019-12-06 01:34:50.787601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.789799"], ["updated_at", "2019-12-06 01:34:50.789799"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/746” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.791647"], ["last_sign_in_at", "2019-12-06 01:34:50.791647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.792153"], ["id", 852]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"746"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 746], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 746]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Gx99QQsKSykXwhEgEGemTucx4htMpqtrh.0CKSSqmvRHXQEdc6Fi6"], ["created_at", "2019-12-06 01:34:50.803344"], ["updated_at", "2019-12-06 01:34:50.803344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.805497"], ["updated_at", "2019-12-06 01:34:50.805497"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/747” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.807500"], ["last_sign_in_at", "2019-12-06 01:34:50.807500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.808085"], ["id", 853]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"747"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 747], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 747]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9/4yRAT7M7qHS2rSreqsqeZ6EtxmEQyzgzR8FwGu.lHmrt4Ry8SD."], ["created_at", "2019-12-06 01:34:50.821940"], ["updated_at", "2019-12-06 01:34:50.821940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.824222"], ["updated_at", "2019-12-06 01:34:50.824222"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/748” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.826325"], ["last_sign_in_at", "2019-12-06 01:34:50.826325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.827072"], ["id", 854]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"748"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Qk/nQN6aPZYj5pF8NxkpR.Fmuqfn1mVMiwCRfVCfswIWf0wqaWoq6"], ["created_at", "2019-12-06 01:34:50.835580"], ["updated_at", "2019-12-06 01:34:50.835580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.837841"], ["updated_at", "2019-12-06 01:34:50.837841"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/749” for 127.0.0.1 at 2019-12-05 22:34:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.839735"], ["last_sign_in_at", "2019-12-06 01:34:50.839735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.840222"], ["id", 855]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"749"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.668645"], ["updated_at", "2019-12-06 01:35:29.668645"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$8Cx2AeAsQNuEoJYLXOSNwOQ1IhLhprf589TEElS/ndm7CvkBV71mS"], ["created_at", "2019-12-06 01:35:29.716770"], ["updated_at", "2019-12-06 01:35:29.716770"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.723595"], ["updated_at", "2019-12-06 01:35:29.723595"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$eb3U/9BmZUSfgLEf6Kl8dOeXQU/6qWx3mTDYxZOzjFm3Y5JCd5hFu"], ["created_at", "2019-12-06 01:35:29.727804"], ["updated_at", "2019-12-06 01:35:29.727804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 751], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 857], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 857], ["room_id", 751], ["created_at", "2019-12-06 01:35:29.774427"], ["updated_at", "2019-12-06 01:35:29.774427"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.780642"], ["updated_at", "2019-12-06 01:35:29.780642"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rj09PTkygy07M91dwkt1mef3pSFptTBBcSthaGZkDcMqfXC.RU816"], ["created_at", "2019-12-06 01:35:29.784665"], ["updated_at", "2019-12-06 01:35:29.784665"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 752], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 858], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 858], ["room_id", 752], ["created_at", "2019-12-06 01:35:29.788813"], ["updated_at", "2019-12-06 01:35:29.788813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.795353"], ["updated_at", "2019-12-06 01:35:29.795353"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$V5d1PM2plqh14mgbIY5YbuwI0db5E.2DTm3xJ4ujt1hEb1b21gjaK"], ["created_at", "2019-12-06 01:35:29.799569"], ["updated_at", "2019-12-06 01:35:29.799569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 753], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 859], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 859], ["room_id", 753], ["created_at", "2019-12-06 01:35:29.803551"], ["updated_at", "2019-12-06 01:35:29.803551"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.809079"], ["updated_at", "2019-12-06 01:35:29.809079"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$X4wb.kounkACRcr.tF4JzOFFPWhJzQUQJCPThgLQsZGhlXK4ZnuiK"], ["created_at", "2019-12-06 01:35:29.813739"], ["updated_at", "2019-12-06 01:35:29.813739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 754], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 860], ["room_id", 754], ["created_at", "2019-12-06 01:35:29.818129"], ["updated_at", "2019-12-06 01:35:29.818129"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 139ms (Views: 108.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$w9QkjZVnv0xrI4qyPhiLvOpg3AJ62G//khSHH8wGlCEPY1amQ/4vS"], ["created_at", "2019-12-06 01:35:30.413966"], ["updated_at", "2019-12-06 01:35:30.413966"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.416047"], ["updated_at", "2019-12-06 01:35:30.416047"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.431849"], ["last_sign_in_at", "2019-12-06 01:35:30.431849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.432473"], ["id", 861]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"755"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 755], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 861], ["room_id", 755], ["created_at", "2019-12-06 01:35:30.448481"], ["updated_at", "2019-12-06 01:35:30.448481"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 755], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$m0yFsQg.nc0HY3VPRF2ka.1fZBJKFtgZUsyx4qoVNjjpPkOQg6BRe"], ["created_at", "2019-12-06 01:35:30.457327"], ["updated_at", "2019-12-06 01:35:30.457327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.459525"], ["updated_at", "2019-12-06 01:35:30.459525"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.462025"], ["last_sign_in_at", "2019-12-06 01:35:30.462025"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.462604"], ["id", 862]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"756"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 756], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 862], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 862], ["room_id", 756], ["created_at", "2019-12-06 01:35:30.467484"], ["updated_at", "2019-12-06 01:35:30.467484"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$E043UF7pWZtTsL4fmKx4D.gYTaD9QidmI46bVntYVNZZDLSbEfqde"], ["created_at", "2019-12-06 01:35:30.475440"], ["updated_at", "2019-12-06 01:35:30.475440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.477470"], ["updated_at", "2019-12-06 01:35:30.477470"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.480070"], ["last_sign_in_at", "2019-12-06 01:35:30.480070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.480589"], ["id", 863]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"757"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 757], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$t.7DDeNECBumMVVeARIUK.3mqd9dBhzD0cb1eVpspLsSiicQCMZvC"], ["created_at", "2019-12-06 01:35:30.489005"], ["updated_at", "2019-12-06 01:35:30.489005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.491195"], ["updated_at", "2019-12-06 01:35:30.491195"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.493326"], ["last_sign_in_at", "2019-12-06 01:35:30.493326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.493876"], ["id", 864]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"758"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$bVdIiQn5NDJm9geO4x.fV.WNZgteJ3gcgtUQFrq7CQIJkOvN93Rla"], ["created_at", "2019-12-06 01:35:30.503248"], ["updated_at", "2019-12-06 01:35:30.503248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.505211"], ["updated_at", "2019-12-06 01:35:30.505211"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 759], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 865], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 865], ["room_id", 759], ["created_at", "2019-12-06 01:35:30.508719"], ["updated_at", "2019-12-06 01:35:30.508719"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/759” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.511315"], ["last_sign_in_at", "2019-12-06 01:35:30.511315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.511910"], ["id", 865]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"759"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 759], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '759')[0m
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 346ms (Views: 328.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$mr2OYXsD.BYOWMVH28Gbb.0UANi14wRbvGmI/zu.6lAONgOJXNAZS"], ["created_at", "2019-12-06 01:35:30.867731"], ["updated_at", "2019-12-06 01:35:30.867731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.869874"], ["updated_at", "2019-12-06 01:35:30.869874"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 760], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 866], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 866], ["room_id", 760], ["created_at", "2019-12-06 01:35:30.873664"], ["updated_at", "2019-12-06 01:35:30.873664"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 760], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 866], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 866], ["room_id", 760], ["created_at", "2019-12-06 01:35:30.877546"], ["updated_at", "2019-12-06 01:35:30.877546"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.880170"], ["last_sign_in_at", "2019-12-06 01:35:30.880170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.880692"], ["id", 866]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 866]] Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 36ms (Views: 4.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$FhoxKu2fyZ8IcebqH7GEAu2dg4cYt5DQxP4rlRq/1BN6cf5XruJUK"], ["created_at", "2019-12-06 01:35:30.925315"], ["updated_at", "2019-12-06 01:35:30.925315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.927603"], ["updated_at", "2019-12-06 01:35:30.927603"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 761], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 867], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 867], ["room_id", 761], ["created_at", "2019-12-06 01:35:30.931525"], ["updated_at", "2019-12-06 01:35:30.931525"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 761], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 867], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 867], ["room_id", 761], ["created_at", "2019-12-06 01:35:30.935398"], ["updated_at", "2019-12-06 01:35:30.935398"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.937715"], ["last_sign_in_at", "2019-12-06 01:35:30.937715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.938267"], ["id", 867]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 867]] Rendered appointments/my_appointments.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YtAA6/GHqKdypLg2dZBP.O4OpXaQX/koSPihkPsjiSPPXvV/KP0vq"], ["created_at", "2019-12-06 01:35:30.952832"], ["updated_at", "2019-12-06 01:35:30.952832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.955072"], ["updated_at", "2019-12-06 01:35:30.955072"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 762], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 868], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 868], ["room_id", 762], ["created_at", "2019-12-06 01:35:30.971701"], ["updated_at", "2019-12-06 01:35:30.971701"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/369” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.974018"], ["last_sign_in_at", "2019-12-06 01:35:30.974018"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.974546"], ["id", 868]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"369"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 369], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 369]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GIxbEH2h7rQV.wknsC.T7.p0IrbEIF7tvewBS9NlRmGbaFlgstl2K"], ["created_at", "2019-12-06 01:35:30.988734"], ["updated_at", "2019-12-06 01:35:30.988734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.991084"], ["last_sign_in_at", "2019-12-06 01:35:30.991084"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.991615"], ["id", 869]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zetWeXjVhaB79Iet3Yo8ROYr8dPZPHTuhd.3SdB/zeRs5fQ7Nx/lm"], ["created_at", "2019-12-06 01:35:31.035026"], ["updated_at", "2019-12-06 01:35:31.035026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.037209"], ["updated_at", "2019-12-06 01:35:31.037209"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 763], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 870], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 870], ["room_id", 763], ["created_at", "2019-12-06 01:35:31.040901"], ["updated_at", "2019-12-06 01:35:31.040901"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 763], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 870], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 870], ["room_id", 763], ["created_at", "2019-12-06 01:35:31.044810"], ["updated_at", "2019-12-06 01:35:31.044810"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.047005"], ["last_sign_in_at", "2019-12-06 01:35:31.047005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.047580"], ["id", 870]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 763], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 870], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 870], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5jlaQo.fH/SXB5Wqho1m1O0MWGzqS3ls.JUMifVIooiF2cHsL0wZu"], ["created_at", "2019-12-06 01:35:31.062349"], ["updated_at", "2019-12-06 01:35:31.062349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.064631"], ["updated_at", "2019-12-06 01:35:31.064631"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 764], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 871], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 871], ["room_id", 764], ["created_at", "2019-12-06 01:35:31.069482"], ["updated_at", "2019-12-06 01:35:31.069482"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 764], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 871], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 871], ["room_id", 764], ["created_at", "2019-12-06 01:35:31.074388"], ["updated_at", "2019-12-06 01:35:31.074388"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.077199"], ["last_sign_in_at", "2019-12-06 01:35:31.077199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.077859"], ["id", 871]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 764], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 871], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 871], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MK0AB21.OKKX1b8vM5L/jeoi4Cr2UiaPKtiZvrPqBwqChHbGUkFdC"], ["created_at", "2019-12-06 01:35:31.092586"], ["updated_at", "2019-12-06 01:35:31.092586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.095105"], ["updated_at", "2019-12-06 01:35:31.095105"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 765], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 872], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 872], ["room_id", 765], ["created_at", "2019-12-06 01:35:31.099081"], ["updated_at", "2019-12-06 01:35:31.099081"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 765], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 872], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 872], ["room_id", 765], ["created_at", "2019-12-06 01:35:31.103076"], ["updated_at", "2019-12-06 01:35:31.103076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.105432"], ["last_sign_in_at", "2019-12-06 01:35:31.105432"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.105948"], ["id", 872]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mUanx1w14c4IDJipXnTR5.rrHdsuWnplTlqPln58ko8FDn8cC.Jba"], ["created_at", "2019-12-06 01:35:31.117729"], ["updated_at", "2019-12-06 01:35:31.117729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.120099"], ["updated_at", "2019-12-06 01:35:31.120099"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 766], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 873], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 873], ["room_id", 766], ["created_at", "2019-12-06 01:35:31.124022"], ["updated_at", "2019-12-06 01:35:31.124022"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 766], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 873], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 873], ["room_id", 766], ["created_at", "2019-12-06 01:35:31.128504"], ["updated_at", "2019-12-06 01:35:31.128504"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.131098"], ["last_sign_in_at", "2019-12-06 01:35:31.131098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.131630"], ["id", 873]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gAP9pHuxZMsFhLsmv2lsluvMEhfXCFjGnQP9ZauBonL8ikGneh7Rq"], ["created_at", "2019-12-06 01:35:31.146389"], ["updated_at", "2019-12-06 01:35:31.146389"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.149040"], ["last_sign_in_at", "2019-12-06 01:35:31.149040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.149627"], ["id", 874]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 65ms (Views: 48.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9bokyHdssgfkFiNflbGZae7cq4oCEhV6bs6n2qXUsgt.EJi0FG8Yu"], ["created_at", "2019-12-06 01:35:31.225689"], ["updated_at", "2019-12-06 01:35:31.225689"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.228441"], ["last_sign_in_at", "2019-12-06 01:35:31.228441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.229005"], ["id", 875]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xZvrMdz3sYdZKu/I3Ekf/.wy9zfnMYvOFPsP1pvd1EOhUTl/Btv0q"], ["created_at", "2019-12-06 01:35:31.240301"], ["updated_at", "2019-12-06 01:35:31.240301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.242761"], ["last_sign_in_at", "2019-12-06 01:35:31.242761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.243504"], ["id", 876]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.5ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ynU58GSRk8jdMNCdOJRrfOJDmASxN336I8U0ts3CO.oTcufWNgPUe"], ["created_at", "2019-12-06 01:35:31.273814"], ["updated_at", "2019-12-06 01:35:31.273814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.276401"], ["last_sign_in_at", "2019-12-06 01:35:31.276401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.277235"], ["id", 877]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FcH06CVhReNWCSK7hLFyiebDspM9D0.F5wFDCSdNu3T41L6Iuf956"], ["created_at", "2019-12-06 01:35:31.303770"], ["updated_at", "2019-12-06 01:35:31.303770"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.306452"], ["updated_at", "2019-12-06 01:35:31.306452"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/767” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.309382"], ["last_sign_in_at", "2019-12-06 01:35:31.309382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.309899"], ["id", 878]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"767"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 767], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hS4FSKej2m67O4be9OJhKO1qP0uok0wCZhqDLHCfdBCJNWLkPWSF6"], ["created_at", "2019-12-06 01:35:31.338840"], ["updated_at", "2019-12-06 01:35:31.338840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.341096"], ["updated_at", "2019-12-06 01:35:31.341096"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/768” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.343559"], ["last_sign_in_at", "2019-12-06 01:35:31.343559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.344134"], ["id", 879]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"768"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 768], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.354673"], ["updated_at", "2019-12-06 01:35:31.354673"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/769” for 127.0.0.1 at 2019-12-05 22:35:31 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"769"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KundYOZmXEMTphExD/yaD.VNal6ixEKzjSCg2SEiP9cw8HkDlwseu"], ["created_at", "2019-12-06 01:35:31.366585"], ["updated_at", "2019-12-06 01:35:31.366585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.368934"], ["updated_at", "2019-12-06 01:35:31.368934"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/770/edit” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.371288"], ["last_sign_in_at", "2019-12-06 01:35:31.371288"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.371836"], ["id", 880]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"770"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 770], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 4.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TA7diI5CSyQe2.hyy9yKbeOr6Bc4fwZRyTBvS99VLSXlW0EF5oQ3."], ["created_at", "2019-12-06 01:35:31.402750"], ["updated_at", "2019-12-06 01:35:31.402750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.405290"], ["updated_at", "2019-12-06 01:35:31.405290"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/771/edit” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.407562"], ["last_sign_in_at", "2019-12-06 01:35:31.407562"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.408136"], ["id", 881]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"771"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 771], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.421136"], ["updated_at", "2019-12-06 01:35:31.421136"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/772” for 127.0.0.1 at 2019-12-05 22:35:31 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"772"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aa0njKNuklitD/uCogQ9SunCAYaVhjHwSPk7iwPeN49io0tNyWu1G"], ["created_at", "2019-12-06 01:35:31.433785"], ["updated_at", "2019-12-06 01:35:31.433785"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.436937"], ["last_sign_in_at", "2019-12-06 01:35:31.436937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.437475"], ["id", 882]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.440840"], ["updated_at", "2019-12-06 01:35:31.440840"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FlFp.IG5J6jcdyw8l3FQfOXx0P5vGceTWRYG.TCa2.9ksMINuOfn."], ["created_at", "2019-12-06 01:35:31.450225"], ["updated_at", "2019-12-06 01:35:31.450225"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.453150"], ["last_sign_in_at", "2019-12-06 01:35:31.453150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.453726"], ["id", 883]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.457378"], ["updated_at", "2019-12-06 01:35:31.457378"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RssyYEKmdAgn5psUAsAGOe3X9EPHASu2mXGKXAiI.8towMNM1ziDy"], ["created_at", "2019-12-06 01:35:31.466482"], ["updated_at", "2019-12-06 01:35:31.466482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.469530"], ["last_sign_in_at", "2019-12-06 01:35:31.469530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.470033"], ["id", 884]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8duFRqnbN6r7zHMnpbON/uYvcJXnZo1XK9nSpWmqTJGv2BTHQgTpq"], ["created_at", "2019-12-06 01:35:31.482460"], ["updated_at", "2019-12-06 01:35:31.482460"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.485345"], ["last_sign_in_at", "2019-12-06 01:35:31.485345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.486108"], ["id", 885]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PLJwmRHmwJWJyAE0bcsRJOyWc6DOmoVvOL8tGbYpSjbuXjjSQ7/pG"], ["created_at", "2019-12-06 01:35:31.507301"], ["updated_at", "2019-12-06 01:35:31.507301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.509823"], ["last_sign_in_at", "2019-12-06 01:35:31.509823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.510335"], ["id", 886]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iKbi8c5v8qeiMxtnRfFR0.pwSRpp6bDYYPXW9HHe.IhIzGGzzW9Tu"], ["created_at", "2019-12-06 01:35:31.521287"], ["updated_at", "2019-12-06 01:35:31.521287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.523516"], ["updated_at", "2019-12-06 01:35:31.523516"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/775” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.525741"], ["last_sign_in_at", "2019-12-06 01:35:31.525741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.526229"], ["id", 887]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"775"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 775], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:35:31.531403"], ["id", 775]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/775 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$66qYn5EneBLG.DVYnQuWiemrtYm9Ej3ARWIfNrl7SiS5IaIXjMXfm"], ["created_at", "2019-12-06 01:35:31.539880"], ["updated_at", "2019-12-06 01:35:31.539880"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.542136"], ["updated_at", "2019-12-06 01:35:31.542136"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/776” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.545138"], ["last_sign_in_at", "2019-12-06 01:35:31.545138"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.545763"], ["id", 888]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"776"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 776], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:35:31.549635"], ["id", 776]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/776 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zhG83aXm2aCd.xSCW7Npuuxm4yRqx4fLJljHyWvELH0Wm8C9DAmhK"], ["created_at", "2019-12-06 01:35:31.558436"], ["updated_at", "2019-12-06 01:35:31.558436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.560877"], ["updated_at", "2019-12-06 01:35:31.560877"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/777” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.563694"], ["last_sign_in_at", "2019-12-06 01:35:31.563694"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.564259"], ["id", 889]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"777"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 777], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vD0YU9ncejE.q9qKo.cnDuHzZq6gM4h.SfgQKTM1w/3uvrQUPocGu"], ["created_at", "2019-12-06 01:35:31.578749"], ["updated_at", "2019-12-06 01:35:31.578749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.581004"], ["updated_at", "2019-12-06 01:35:31.581004"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/778” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.583364"], ["last_sign_in_at", "2019-12-06 01:35:31.583364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.583888"], ["id", 890]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"778"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 778], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8dZpgktXkQLBL0RjuB.WXebVZbR.OPno6uOBxOdk06Bro4yranq1y"], ["created_at", "2019-12-06 01:35:31.598112"], ["updated_at", "2019-12-06 01:35:31.598112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.600683"], ["last_sign_in_at", "2019-12-06 01:35:31.600683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.601166"], ["id", 891]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tKo6yVTeMyQ0WzypFs6qB.8W2Covj6i59ur73/TWXexpq8e03INym"], ["created_at", "2019-12-06 01:35:31.611659"], ["updated_at", "2019-12-06 01:35:31.611659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.614052"], ["updated_at", "2019-12-06 01:35:31.614052"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/779” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.615964"], ["last_sign_in_at", "2019-12-06 01:35:31.615964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.616480"], ["id", 892]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"779"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 779], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 779]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wB/Y7PGvhn6daSG3zdyTCe8TYTO3KrIlFJHSqNTFGliOyiPprh/cW"], ["created_at", "2019-12-06 01:35:31.627748"], ["updated_at", "2019-12-06 01:35:31.627748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.630360"], ["updated_at", "2019-12-06 01:35:31.630360"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/780” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.632535"], ["last_sign_in_at", "2019-12-06 01:35:31.632535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.633114"], ["id", 893]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"780"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 780], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 780]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UvF.ZVPswQHjwWzQNX9rQe/fztgkNnu.FyAK9iwZgNmpYEr88ptCi"], ["created_at", "2019-12-06 01:35:31.644431"], ["updated_at", "2019-12-06 01:35:31.644431"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.646961"], ["updated_at", "2019-12-06 01:35:31.646961"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/781” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.648851"], ["last_sign_in_at", "2019-12-06 01:35:31.648851"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.649333"], ["id", 894]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"781"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e1mlquKkrUC3as5oUD23dOYpOxPCTYNKjZ.XLCsutGvJCoZjq7vKW"], ["created_at", "2019-12-06 01:35:31.658000"], ["updated_at", "2019-12-06 01:35:31.658000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.660129"], ["updated_at", "2019-12-06 01:35:31.660129"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/782” for 127.0.0.1 at 2019-12-05 22:35:31 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.662423"], ["last_sign_in_at", "2019-12-06 01:35:31.662423"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.662978"], ["id", 895]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"782"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$wqe30Vramclg66RbTl0K1OdTEYBP50pVqsonIok0p5b/IZr197LDy"], ["created_at", "2019-12-06 01:37:18.227205"], ["updated_at", "2019-12-06 01:37:18.227205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.236159"], ["updated_at", "2019-12-06 01:37:18.236159"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$zgmJbDAxw3xWPvRE.j5/Gu5XtaNzncezuIeV1w0AVb.4.dWi6BsmG"], ["created_at", "2019-12-06 01:37:18.246063"], ["updated_at", "2019-12-06 01:37:18.246063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.248505"], ["updated_at", "2019-12-06 01:37:18.248505"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 784], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 897], ["LIMIT", 1]]
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 897], ["room_id", 784], ["created_at", "2019-12-06 01:37:18.296482"], ["updated_at", "2019-12-06 01:37:18.296482"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1fDVONlJoDFVP0hfT6M91.gx.bi4zHbRUtD/F7OBE0DygctNtfRwq"], ["created_at", "2019-12-06 01:37:18.305705"], ["updated_at", "2019-12-06 01:37:18.305705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.308113"], ["updated_at", "2019-12-06 01:37:18.308113"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 785], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 898], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 898], ["room_id", 785], ["created_at", "2019-12-06 01:37:18.312249"], ["updated_at", "2019-12-06 01:37:18.312249"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rq7PJvhcZh8rNCMMHjtJZu71NSjoEs3EtLnVGefCt7vyJln4/T8Hy"], ["created_at", "2019-12-06 01:37:18.320960"], ["updated_at", "2019-12-06 01:37:18.320960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.323124"], ["updated_at", "2019-12-06 01:37:18.323124"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 786], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 899], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 899], ["room_id", 786], ["created_at", "2019-12-06 01:37:18.327052"], ["updated_at", "2019-12-06 01:37:18.327052"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ral45WL/SLAIipVuPr1Y7eiunlDaQl6b2ovnVHxLka6mA8oDS5ah2"], ["created_at", "2019-12-06 01:37:18.334912"], ["updated_at", "2019-12-06 01:37:18.334912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.337348"], ["updated_at", "2019-12-06 01:37:18.337348"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 787], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 900], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 900], ["room_id", 787], ["created_at", "2019-12-06 01:37:18.341453"], ["updated_at", "2019-12-06 01:37:18.341453"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 142ms (Views: 110.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KW8/Q8/eO3qBR/q9XU5CouRFiuS80oLVJNXeGdLq.BieXEReQnEEe"], ["created_at", "2019-12-06 01:37:18.951080"], ["updated_at", "2019-12-06 01:37:18.951080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.953409"], ["updated_at", "2019-12-06 01:37:18.953409"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:18 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:18.969328"], ["last_sign_in_at", "2019-12-06 01:37:18.969328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:18.970123"], ["id", 901]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"788"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 788], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 901], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 901], ["room_id", 788], ["created_at", "2019-12-06 01:37:18.986555"], ["updated_at", "2019-12-06 01:37:18.986555"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 788], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NHyilKvXqHz0XKani/P.jeT0RhZhpkt7d0Oov0Z0KEpTd2AONgGrS"], ["created_at", "2019-12-06 01:37:18.996026"], ["updated_at", "2019-12-06 01:37:18.996026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.998410"], ["updated_at", "2019-12-06 01:37:18.998410"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.001068"], ["last_sign_in_at", "2019-12-06 01:37:19.001068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.001685"], ["id", 902]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"789"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 789], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 902], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 902], ["room_id", 789], ["created_at", "2019-12-06 01:37:19.006826"], ["updated_at", "2019-12-06 01:37:19.006826"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$s/PZyYylqYrN9Fcxsbc0Q.aZUr3Q37KiYD.rGGGS0FwgXEGbEGYci"], ["created_at", "2019-12-06 01:37:19.016242"], ["updated_at", "2019-12-06 01:37:19.016242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.018403"], ["updated_at", "2019-12-06 01:37:19.018403"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.021095"], ["last_sign_in_at", "2019-12-06 01:37:19.021095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.021702"], ["id", 903]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"790"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 790], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/6y4hhQHC.or2lZWeN7qbOa7m/igXHic3pJNYK/q/yn6uysi4uyea"], ["created_at", "2019-12-06 01:37:19.031004"], ["updated_at", "2019-12-06 01:37:19.031004"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.033559"], ["updated_at", "2019-12-06 01:37:19.033559"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.035906"], ["last_sign_in_at", "2019-12-06 01:37:19.035906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.036391"], ["id", 904]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"791"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jO8ez71kyVAsTtquC7oKL.59CikquOJqNAv6vdktXsKvIH4rDrEaa"], ["created_at", "2019-12-06 01:37:19.046595"], ["updated_at", "2019-12-06 01:37:19.046595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.049348"], ["updated_at", "2019-12-06 01:37:19.049348"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 905], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 905], ["room_id", 792], ["created_at", "2019-12-06 01:37:19.053649"], ["updated_at", "2019-12-06 01:37:19.053649"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/792” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.056002"], ["last_sign_in_at", "2019-12-06 01:37:19.056002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.056524"], ["id", 905]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"792"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '792')[0m
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 355ms (Views: 337.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dZl2b8RPXCMmgGcsBABV3ebO0FaZoeOVfSoLoBs60AEBgC8.C4nqS"], ["created_at", "2019-12-06 01:37:19.421151"], ["updated_at", "2019-12-06 01:37:19.421151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.423453"], ["updated_at", "2019-12-06 01:37:19.423453"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 906], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 906], ["room_id", 793], ["created_at", "2019-12-06 01:37:19.427344"], ["updated_at", "2019-12-06 01:37:19.427344"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 906], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 906], ["room_id", 793], ["created_at", "2019-12-06 01:37:19.432338"], ["updated_at", "2019-12-06 01:37:19.432338"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.434753"], ["last_sign_in_at", "2019-12-06 01:37:19.434753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.435274"], ["id", 906]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 906]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 37ms (Views: 4.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$q4kSk.ErSDq.M8ropVdPcuCpVgdI9xKJt0ysTAEv7fB0s//nYL2CW"], ["created_at", "2019-12-06 01:37:19.481180"], ["updated_at", "2019-12-06 01:37:19.481180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.483557"], ["updated_at", "2019-12-06 01:37:19.483557"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 794], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 907], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 907], ["room_id", 794], ["created_at", "2019-12-06 01:37:19.487232"], ["updated_at", "2019-12-06 01:37:19.487232"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 794], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 907], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 907], ["room_id", 794], ["created_at", "2019-12-06 01:37:19.491310"], ["updated_at", "2019-12-06 01:37:19.491310"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.493593"], ["last_sign_in_at", "2019-12-06 01:37:19.493593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.494116"], ["id", 907]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 907]] Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$uDBQerS/BA4x59UXX.MQS.iMCbmcnbV4JKq.1y02iyPFdE615rxLG"], ["created_at", "2019-12-06 01:37:19.508259"], ["updated_at", "2019-12-06 01:37:19.508259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.510764"], ["updated_at", "2019-12-06 01:37:19.510764"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 795], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 908], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 908], ["room_id", 795], ["created_at", "2019-12-06 01:37:19.515685"], ["updated_at", "2019-12-06 01:37:19.515685"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/389” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.518106"], ["last_sign_in_at", "2019-12-06 01:37:19.518106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.518622"], ["id", 908]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"389"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 389], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 389]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CGavUO6iwBUDmC3.UQuaf.t0exnkgrSdK10/q.uWsAIViWiGWOf6q"], ["created_at", "2019-12-06 01:37:19.545978"], ["updated_at", "2019-12-06 01:37:19.545978"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.548608"], ["last_sign_in_at", "2019-12-06 01:37:19.548608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.549264"], ["id", 909]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.4ms)
Completed 200 OK in 38ms (Views: 21.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N8..wkuYlUkAb2NsNwSZveTxaPbnKLTyKL05XvYH16lQJQ35cMAFy"], ["created_at", "2019-12-06 01:37:19.596510"], ["updated_at", "2019-12-06 01:37:19.596510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.598964"], ["updated_at", "2019-12-06 01:37:19.598964"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 796], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 910], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 910], ["room_id", 796], ["created_at", "2019-12-06 01:37:19.603222"], ["updated_at", "2019-12-06 01:37:19.603222"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 796], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 910], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 910], ["room_id", 796], ["created_at", "2019-12-06 01:37:19.607191"], ["updated_at", "2019-12-06 01:37:19.607191"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.609613"], ["last_sign_in_at", "2019-12-06 01:37:19.609613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.610299"], ["id", 910]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 796], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 910], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 910], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N9cfP5cZGsKf5.2fSwVTwex2sYe3o1lM7Yn5edo04rTDuEaAXAx.C"], ["created_at", "2019-12-06 01:37:19.624618"], ["updated_at", "2019-12-06 01:37:19.624618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.626880"], ["updated_at", "2019-12-06 01:37:19.626880"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 797], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 911], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 911], ["room_id", 797], ["created_at", "2019-12-06 01:37:19.631129"], ["updated_at", "2019-12-06 01:37:19.631129"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 797], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 911], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 911], ["room_id", 797], ["created_at", "2019-12-06 01:37:19.635499"], ["updated_at", "2019-12-06 01:37:19.635499"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.637877"], ["last_sign_in_at", "2019-12-06 01:37:19.637877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.638395"], ["id", 911]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 797], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 911], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 911], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ItjCE.wcAOGvvbwEuoLZ7u4X8me4vzu.FQweg3GLoEQeeuBnqr1Hu"], ["created_at", "2019-12-06 01:37:19.653524"], ["updated_at", "2019-12-06 01:37:19.653524"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.655717"], ["updated_at", "2019-12-06 01:37:19.655717"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 798], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 912], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 912], ["room_id", 798], ["created_at", "2019-12-06 01:37:19.659559"], ["updated_at", "2019-12-06 01:37:19.659559"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 798], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 912], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 912], ["room_id", 798], ["created_at", "2019-12-06 01:37:19.663446"], ["updated_at", "2019-12-06 01:37:19.663446"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.666361"], ["last_sign_in_at", "2019-12-06 01:37:19.666361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.666915"], ["id", 912]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wzgff/IzPXp5wn7rmua5zOza1mivGEusNBCboxuNXG1AUVJkobPD."], ["created_at", "2019-12-06 01:37:19.678798"], ["updated_at", "2019-12-06 01:37:19.678798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.681861"], ["updated_at", "2019-12-06 01:37:19.681861"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 799], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 913], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 913], ["room_id", 799], ["created_at", "2019-12-06 01:37:19.686477"], ["updated_at", "2019-12-06 01:37:19.686477"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 799], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 913], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 913], ["room_id", 799], ["created_at", "2019-12-06 01:37:19.691078"], ["updated_at", "2019-12-06 01:37:19.691078"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.693665"], ["last_sign_in_at", "2019-12-06 01:37:19.693665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.694260"], ["id", 913]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0aZ/BhdU5YBUYlpFL.exeuo.CHqPxbpNKweviAb3JxBwh6sSVU8NG"], ["created_at", "2019-12-06 01:37:19.710181"], ["updated_at", "2019-12-06 01:37:19.710181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.713056"], ["last_sign_in_at", "2019-12-06 01:37:19.713056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.713644"], ["id", 914]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 64ms (Views: 48.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GitS6bu9JABm/gtmVM2eweqM1gDfw2EPzcQBp4Fm7TG313yhzZJZS"], ["created_at", "2019-12-06 01:37:19.790659"], ["updated_at", "2019-12-06 01:37:19.790659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.793081"], ["last_sign_in_at", "2019-12-06 01:37:19.793081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.793606"], ["id", 915]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ujDHBs2UU53HK867EfbDZ.DwglB433es6btYVYzRiOU4yDHV9yX9y"], ["created_at", "2019-12-06 01:37:19.803722"], ["updated_at", "2019-12-06 01:37:19.803722"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.806231"], ["last_sign_in_at", "2019-12-06 01:37:19.806231"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.806888"], ["id", 916]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L77rGHGB5OQafMwJn/C06uBYLnp1dtClAw5pTDNcxvVTNMJaNL5/q"], ["created_at", "2019-12-06 01:37:19.837790"], ["updated_at", "2019-12-06 01:37:19.837790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.841025"], ["last_sign_in_at", "2019-12-06 01:37:19.841025"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.841621"], ["id", 917]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:37:19 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7loJxJA2/Bccw34mGUlB7eIeHeTwoA71qomAl3PSdtBvDndglR0EW"], ["created_at", "2019-12-06 01:37:19.865679"], ["updated_at", "2019-12-06 01:37:19.865679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.868466"], ["updated_at", "2019-12-06 01:37:19.868466"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/800” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.871652"], ["last_sign_in_at", "2019-12-06 01:37:19.871652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.872208"], ["id", 918]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"800"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 800], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qC2/4idDR5DxYIrHtKeQMuvlD4IyicM.11WhRRtDyvyrhpRSPC7Wy"], ["created_at", "2019-12-06 01:37:19.902950"], ["updated_at", "2019-12-06 01:37:19.902950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.905884"], ["updated_at", "2019-12-06 01:37:19.905884"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/801” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.908732"], ["last_sign_in_at", "2019-12-06 01:37:19.908732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.909243"], ["id", 919]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"801"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 801], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.921529"], ["updated_at", "2019-12-06 01:37:19.921529"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/802” for 127.0.0.1 at 2019-12-05 22:37:19 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"802"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MXlwfZicdDG1JRN.OIJwreAyIa3nrm3lSjazWyPnceLMP6wsXar7i"], ["created_at", "2019-12-06 01:37:19.933392"], ["updated_at", "2019-12-06 01:37:19.933392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.935825"], ["updated_at", "2019-12-06 01:37:19.935825"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/803/edit” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.938726"], ["last_sign_in_at", "2019-12-06 01:37:19.938726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.939227"], ["id", 920]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"803"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 803], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$594DDF2m1.UMWYLgj8Z75.9coEma1ZeMKCeD.U7kgZHIJBVq7Leky"], ["created_at", "2019-12-06 01:37:19.970461"], ["updated_at", "2019-12-06 01:37:19.970461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.973248"], ["updated_at", "2019-12-06 01:37:19.973248"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/804/edit” for 127.0.0.1 at 2019-12-05 22:37:19 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.975775"], ["last_sign_in_at", "2019-12-06 01:37:19.975775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.976507"], ["id", 921]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"804"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 804], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.989907"], ["updated_at", "2019-12-06 01:37:19.989907"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/805” for 127.0.0.1 at 2019-12-05 22:37:19 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"805"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tQHart50E4yUnL6EgGXjhevcCeOGFpC/MYTQnVxz7aldgM3YmWAKq"], ["created_at", "2019-12-06 01:37:20.002847"], ["updated_at", "2019-12-06 01:37:20.002847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.006045"], ["last_sign_in_at", "2019-12-06 01:37:20.006045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.006568"], ["id", 922]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.010698"], ["updated_at", "2019-12-06 01:37:20.010698"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cbmB2CV/t8udHRotYOyP1OVOhEX94m544pK3DFeJTSRAXC2euu/Y6"], ["created_at", "2019-12-06 01:37:20.021123"], ["updated_at", "2019-12-06 01:37:20.021123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.024171"], ["last_sign_in_at", "2019-12-06 01:37:20.024171"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.024668"], ["id", 923]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.031466"], ["updated_at", "2019-12-06 01:37:20.031466"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P.L156ldpi7FL3Fyhi/53O5GoFIaxgbxlRq5V4lOB./C/VGC6dL8C"], ["created_at", "2019-12-06 01:37:20.040587"], ["updated_at", "2019-12-06 01:37:20.040587"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.043589"], ["last_sign_in_at", "2019-12-06 01:37:20.043589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.044180"], ["id", 924]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aKc0vlrilTv4a1Ez2BEVb.Q2iUl0/j64EBPYcs9zIrRu9bvR4zyw6"], ["created_at", "2019-12-06 01:37:20.056790"], ["updated_at", "2019-12-06 01:37:20.056790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.059790"], ["last_sign_in_at", "2019-12-06 01:37:20.059790"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.060400"], ["id", 925]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qzRr9BoxGB1qkRwTsdUim.w.1bEulVCr2rk3eri7mtS8uJMnCmxtq"], ["created_at", "2019-12-06 01:37:20.073114"], ["updated_at", "2019-12-06 01:37:20.073114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.075981"], ["last_sign_in_at", "2019-12-06 01:37:20.075981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.076473"], ["id", 926]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qLA4xYByCUYFS4kCVGEBIOdFtE0Og6VJUO2aFd6DOg7sgSjiEPK7K"], ["created_at", "2019-12-06 01:37:20.088923"], ["updated_at", "2019-12-06 01:37:20.088923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.099255"], ["updated_at", "2019-12-06 01:37:20.099255"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/808” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.102057"], ["last_sign_in_at", "2019-12-06 01:37:20.102057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.102581"], ["id", 927]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"808"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 808], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:37:20.106396"], ["id", 808]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/808 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z0wbmR/xmGLrLvKp2D7DI.Pvtkdfeh9crcL2C7g5LBhwyDXFI7AXe"], ["created_at", "2019-12-06 01:37:20.115921"], ["updated_at", "2019-12-06 01:37:20.115921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.118252"], ["updated_at", "2019-12-06 01:37:20.118252"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/809” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.120823"], ["last_sign_in_at", "2019-12-06 01:37:20.120823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.121348"], ["id", 928]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"809"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 809], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:37:20.125337"], ["id", 809]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/809 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j.kqFqwmLk4Y0i0UjKv1puOFI/qqTx6DItKTuoar.oLYiKGphmSpi"], ["created_at", "2019-12-06 01:37:20.134385"], ["updated_at", "2019-12-06 01:37:20.134385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.136673"], ["updated_at", "2019-12-06 01:37:20.136673"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/810” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.139390"], ["last_sign_in_at", "2019-12-06 01:37:20.139390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.140091"], ["id", 929]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"810"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 810], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$baSxXQ7m2Jq6hez9xbXCFeEGaMIfK0kTfnjW8p.TCX.pVXakU3uJO"], ["created_at", "2019-12-06 01:37:20.154983"], ["updated_at", "2019-12-06 01:37:20.154983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.157280"], ["updated_at", "2019-12-06 01:37:20.157280"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/811” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.159640"], ["last_sign_in_at", "2019-12-06 01:37:20.159640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.160262"], ["id", 930]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"811"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 811], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WzOKWZOYnsnatfFp7m1abu6q8ZfmJbIqYVYOnV1GOaYcykf3zDIju"], ["created_at", "2019-12-06 01:37:20.175606"], ["updated_at", "2019-12-06 01:37:20.175606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.178282"], ["last_sign_in_at", "2019-12-06 01:37:20.178282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.178843"], ["id", 931]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gEBYgLb0ZFRps6CFXysQt.x9jIElApE4htKuYbSFleP0L16UkjkeC"], ["created_at", "2019-12-06 01:37:20.190496"], ["updated_at", "2019-12-06 01:37:20.190496"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.193283"], ["updated_at", "2019-12-06 01:37:20.193283"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/812” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.195049"], ["last_sign_in_at", "2019-12-06 01:37:20.195049"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.195526"], ["id", 932]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"812"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 812], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 812]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uCigfBtPqQg3gxKZIDT1cug0DsNoKlpEXMWIF0zvmdRi7Eo/EOE16"], ["created_at", "2019-12-06 01:37:20.207015"], ["updated_at", "2019-12-06 01:37:20.207015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.209325"], ["updated_at", "2019-12-06 01:37:20.209325"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/813” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.211422"], ["last_sign_in_at", "2019-12-06 01:37:20.211422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.212046"], ["id", 933]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"813"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 813], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 813]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FXbQliz4tmLpmxF.O9nGO.eK7EKGreAWr/y2jAEtqTNpLZUe.AFTK"], ["created_at", "2019-12-06 01:37:20.223997"], ["updated_at", "2019-12-06 01:37:20.223997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.226272"], ["updated_at", "2019-12-06 01:37:20.226272"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/814” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.228162"], ["last_sign_in_at", "2019-12-06 01:37:20.228162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.228642"], ["id", 934]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"814"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Yt6shtwnsAg7/SB7vEvMOIvMlLGFhY8BWGOJHeQIe0rpvajlvwGe"], ["created_at", "2019-12-06 01:37:20.237920"], ["updated_at", "2019-12-06 01:37:20.237920"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.240123"], ["updated_at", "2019-12-06 01:37:20.240123"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/815” for 127.0.0.1 at 2019-12-05 22:37:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.241949"], ["last_sign_in_at", "2019-12-06 01:37:20.241949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.242427"], ["id", 935]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"815"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$22/Mr0AL4okfyf9dtCmpouCcJ1YTyLosDgUsa/8QqwpTZd1IireKS"], ["created_at", "2019-12-06 01:51:50.906916"], ["updated_at", "2019-12-06 01:51:50.906916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.915553"], ["updated_at", "2019-12-06 01:51:50.915553"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$aWKXsZrqXaMW5U0IveFfZ.HXzQEQSG1ZyjyEmlBKHV5Q9X4aKHrfy"], ["created_at", "2019-12-06 01:51:50.923647"], ["updated_at", "2019-12-06 01:51:50.923647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.926250"], ["updated_at", "2019-12-06 01:51:50.926250"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 817], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 937], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 937], ["room_id", 817], ["created_at", "2019-12-06 01:51:50.971910"], ["updated_at", "2019-12-06 01:51:50.971910"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ivyVP6ETsTO/YvwnO04/G.5mls8gdIXkBpYjzXKDVcB7SCMsxWL8a"], ["created_at", "2019-12-06 01:51:50.980202"], ["updated_at", "2019-12-06 01:51:50.980202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.982401"], ["updated_at", "2019-12-06 01:51:50.982401"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 818], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 938], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 938], ["room_id", 818], ["created_at", "2019-12-06 01:51:50.986177"], ["updated_at", "2019-12-06 01:51:50.986177"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3b.lfQgm.98HWSrPEv2z7u/E3J73GJtpAYL1jDXVFWzuDXWOvSTqi"], ["created_at", "2019-12-06 01:51:50.994431"], ["updated_at", "2019-12-06 01:51:50.994431"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.996714"], ["updated_at", "2019-12-06 01:51:50.996714"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 819], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 939], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 939], ["room_id", 819], ["created_at", "2019-12-06 01:51:51.000563"], ["updated_at", "2019-12-06 01:51:51.000563"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NUNEE7Xz1i7tnFwGrdsHr.ccgsqSzsaLvHeSESp0j.OLVgzI/gPQu"], ["created_at", "2019-12-06 01:51:51.007802"], ["updated_at", "2019-12-06 01:51:51.007802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.010277"], ["updated_at", "2019-12-06 01:51:51.010277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 820], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 940], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 940], ["room_id", 820], ["created_at", "2019-12-06 01:51:51.014126"], ["updated_at", "2019-12-06 01:51:51.014126"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 138ms (Views: 107.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KFhCJOYunqmSOS3mrum.0.UbiZ/mNBgFdV/diOQpIwRmiy/GYck0O"], ["created_at", "2019-12-06 01:51:51.611306"], ["updated_at", "2019-12-06 01:51:51.611306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.613526"], ["updated_at", "2019-12-06 01:51:51.613526"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.629470"], ["last_sign_in_at", "2019-12-06 01:51:51.629470"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.630146"], ["id", 941]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"821"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 821], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 941], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 941], ["room_id", 821], ["created_at", "2019-12-06 01:51:51.646866"], ["updated_at", "2019-12-06 01:51:51.646866"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 821], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$nXPrjvaSPFjOPAAnGVjlZuCYSUCfrqShn604IuzZlmb5LjawNtJee"], ["created_at", "2019-12-06 01:51:51.656774"], ["updated_at", "2019-12-06 01:51:51.656774"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.659223"], ["updated_at", "2019-12-06 01:51:51.659223"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.661712"], ["last_sign_in_at", "2019-12-06 01:51:51.661712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.662252"], ["id", 942]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"822"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 822], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 942], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 942], ["room_id", 822], ["created_at", "2019-12-06 01:51:51.666999"], ["updated_at", "2019-12-06 01:51:51.666999"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dyub5PAAjM.mV6YKYFdW/eviB6D3yH2qBqO/IC4Ikscm.qr3HHmkW"], ["created_at", "2019-12-06 01:51:51.675449"], ["updated_at", "2019-12-06 01:51:51.675449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.677632"], ["updated_at", "2019-12-06 01:51:51.677632"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.679791"], ["last_sign_in_at", "2019-12-06 01:51:51.679791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.680333"], ["id", 943]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"823"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 823], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TKE4KKEw73frWg5tCOYOxOL3UVKpstCfwVHyukTvxfCVb4QsTBt96"], ["created_at", "2019-12-06 01:51:51.690016"], ["updated_at", "2019-12-06 01:51:51.690016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.692357"], ["updated_at", "2019-12-06 01:51:51.692357"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.694838"], ["last_sign_in_at", "2019-12-06 01:51:51.694838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.695363"], ["id", 944]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"824"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$h9WRcPK6RTg79U5VTw7LLubvuf9awtGoJrT0cTDfBHOtGrdhNk6ku"], ["created_at", "2019-12-06 01:51:51.704796"], ["updated_at", "2019-12-06 01:51:51.704796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.706674"], ["updated_at", "2019-12-06 01:51:51.706674"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 825], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 945], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 945], ["room_id", 825], ["created_at", "2019-12-06 01:51:51.710757"], ["updated_at", "2019-12-06 01:51:51.710757"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/825” for 127.0.0.1 at 2019-12-05 22:51:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.713038"], ["last_sign_in_at", "2019-12-06 01:51:51.713038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.713613"], ["id", 945]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"825"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 825], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '825')[0m
Rendered appointments/show.html.erb within layouts/application (25.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 351ms (Views: 333.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$32TZ/1xVBeZy34L6Bbg71eyUJIoPfJR.qhlt4YRh2h0dLpBuSQAmi"], ["created_at", "2019-12-06 01:51:52.073977"], ["updated_at", "2019-12-06 01:51:52.073977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.076353"], ["updated_at", "2019-12-06 01:51:52.076353"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 826], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 946], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 946], ["room_id", 826], ["created_at", "2019-12-06 01:51:52.080218"], ["updated_at", "2019-12-06 01:51:52.080218"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 826], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 946], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 946], ["room_id", 826], ["created_at", "2019-12-06 01:51:52.083991"], ["updated_at", "2019-12-06 01:51:52.083991"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.086403"], ["last_sign_in_at", "2019-12-06 01:51:52.086403"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.086924"], ["id", 946]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 946]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 37ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iAKUHKKpVxXGEETLmMNRTOAp/SDHHRDYIVWIXTeh5TNe3Q/UYzt9i"], ["created_at", "2019-12-06 01:51:52.133020"], ["updated_at", "2019-12-06 01:51:52.133020"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.135290"], ["updated_at", "2019-12-06 01:51:52.135290"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 827], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 947], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 947], ["room_id", 827], ["created_at", "2019-12-06 01:51:52.139267"], ["updated_at", "2019-12-06 01:51:52.139267"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 827], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 947], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 947], ["room_id", 827], ["created_at", "2019-12-06 01:51:52.143371"], ["updated_at", "2019-12-06 01:51:52.143371"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.145870"], ["last_sign_in_at", "2019-12-06 01:51:52.145870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.146421"], ["id", 947]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 947]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$989zgByX75wFrlesaaaVx.Z7PYgkr/LrPywvRxQnz9LpdAe0J8fEu"], ["created_at", "2019-12-06 01:51:52.173245"], ["updated_at", "2019-12-06 01:51:52.173245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.175824"], ["updated_at", "2019-12-06 01:51:52.175824"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 828], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 948], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 948], ["room_id", 828], ["created_at", "2019-12-06 01:51:52.179638"], ["updated_at", "2019-12-06 01:51:52.179638"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/409” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.181881"], ["last_sign_in_at", "2019-12-06 01:51:52.181881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.182447"], ["id", 948]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"409"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 409], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 409]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QUfotTwfIQlkac/ZYnifa.GtkKirlb20cY1J1pxlqGiyztkb.xCvO"], ["created_at", "2019-12-06 01:51:52.198867"], ["updated_at", "2019-12-06 01:51:52.198867"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.201163"], ["last_sign_in_at", "2019-12-06 01:51:52.201163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.201679"], ["id", 949]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yGVPv2MLR7gDmYR7cA5dCuC913uPzoSAoP5ozaxrYls9S.XwhNI1q"], ["created_at", "2019-12-06 01:51:52.246095"], ["updated_at", "2019-12-06 01:51:52.246095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.248375"], ["updated_at", "2019-12-06 01:51:52.248375"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 829], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 950], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 950], ["room_id", 829], ["created_at", "2019-12-06 01:51:52.252218"], ["updated_at", "2019-12-06 01:51:52.252218"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 829], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 950], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 950], ["room_id", 829], ["created_at", "2019-12-06 01:51:52.256225"], ["updated_at", "2019-12-06 01:51:52.256225"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.259107"], ["last_sign_in_at", "2019-12-06 01:51:52.259107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.259677"], ["id", 950]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 829], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 950], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 950], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$muMlkKQiH69W0qvyIIufNOIpwey8m5qd.KWN93piFZDHAJuCOy3N."], ["created_at", "2019-12-06 01:51:52.273304"], ["updated_at", "2019-12-06 01:51:52.273304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.276069"], ["updated_at", "2019-12-06 01:51:52.276069"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 830], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 951], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 951], ["room_id", 830], ["created_at", "2019-12-06 01:51:52.279829"], ["updated_at", "2019-12-06 01:51:52.279829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 830], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 951], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 951], ["room_id", 830], ["created_at", "2019-12-06 01:51:52.283669"], ["updated_at", "2019-12-06 01:51:52.283669"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.285996"], ["last_sign_in_at", "2019-12-06 01:51:52.285996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.286517"], ["id", 951]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 830], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 951], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 951], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9TzwcDUSX6.8Mjc689rbJ.domzYYxBGibgtAnsYxXQ2S0L5oFwyUy"], ["created_at", "2019-12-06 01:51:52.301258"], ["updated_at", "2019-12-06 01:51:52.301258"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.303690"], ["updated_at", "2019-12-06 01:51:52.303690"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 831], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 952], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 952], ["room_id", 831], ["created_at", "2019-12-06 01:51:52.308213"], ["updated_at", "2019-12-06 01:51:52.308213"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 831], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 952], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 952], ["room_id", 831], ["created_at", "2019-12-06 01:51:52.312208"], ["updated_at", "2019-12-06 01:51:52.312208"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.314569"], ["last_sign_in_at", "2019-12-06 01:51:52.314569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.315094"], ["id", 952]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wEuwZaUZUEaT5VdoRIcJh.kZuqxWZrPD40JURHMy2LSTzrYh0ZF/e"], ["created_at", "2019-12-06 01:51:52.326914"], ["updated_at", "2019-12-06 01:51:52.326914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.329168"], ["updated_at", "2019-12-06 01:51:52.329168"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 832], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 953], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 953], ["room_id", 832], ["created_at", "2019-12-06 01:51:52.332925"], ["updated_at", "2019-12-06 01:51:52.332925"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 832], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 953], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 953], ["room_id", 832], ["created_at", "2019-12-06 01:51:52.337093"], ["updated_at", "2019-12-06 01:51:52.337093"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.339538"], ["last_sign_in_at", "2019-12-06 01:51:52.339538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.340075"], ["id", 953]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ueqZzNQSI53Gn2yKqewHpOr5HFcMkW2cGeQ5.zBz1113TFP9orMa."], ["created_at", "2019-12-06 01:51:52.354533"], ["updated_at", "2019-12-06 01:51:52.354533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.356877"], ["last_sign_in_at", "2019-12-06 01:51:52.356877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.357390"], ["id", 954]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.8ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 65ms (Views: 48.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cGyjI4m1HX7d2QIQUjEdf.uDR41ahTip9EAsUGnv2A13hkfk9y3se"], ["created_at", "2019-12-06 01:51:52.434501"], ["updated_at", "2019-12-06 01:51:52.434501"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.437174"], ["last_sign_in_at", "2019-12-06 01:51:52.437174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.437671"], ["id", 955]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.wVtgOGJuPpwY9XgR5I3M.KyZx.m.6UL5Hpl3FiDyrikTSIwydfqy"], ["created_at", "2019-12-06 01:51:52.449833"], ["updated_at", "2019-12-06 01:51:52.449833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.452497"], ["last_sign_in_at", "2019-12-06 01:51:52.452497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.452995"], ["id", 956]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 21ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P4PqDPEw3KBbQvGwQ5CJe.b4bu9mYFy.Y1ZNZ9fPu9xPBcOi0n76m"], ["created_at", "2019-12-06 01:51:52.483728"], ["updated_at", "2019-12-06 01:51:52.483728"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.486455"], ["last_sign_in_at", "2019-12-06 01:51:52.486455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.486952"], ["id", 957]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.3ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z.WKcevp0RKFDkqVgLFl7.VVXO37A3RRwHwgkU0/CUxCVGpAbJK1y"], ["created_at", "2019-12-06 01:51:52.512559"], ["updated_at", "2019-12-06 01:51:52.512559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.514845"], ["updated_at", "2019-12-06 01:51:52.514845"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/833” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.517256"], ["last_sign_in_at", "2019-12-06 01:51:52.517256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.517767"], ["id", 958]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"833"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 833], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 19ms (Views: 2.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rVlaMUhMPG0XnA5lg273IeTuvnUq33H5Z3hSVQJIPAukw46orfPjm"], ["created_at", "2019-12-06 01:51:52.545710"], ["updated_at", "2019-12-06 01:51:52.545710"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.547994"], ["updated_at", "2019-12-06 01:51:52.547994"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/834” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.550074"], ["last_sign_in_at", "2019-12-06 01:51:52.550074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.550818"], ["id", 959]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"834"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 834], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.560928"], ["updated_at", "2019-12-06 01:51:52.560928"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/835” for 127.0.0.1 at 2019-12-05 22:51:52 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"835"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NHvVz1eRb0ppx8ec5HJhHOLMXzb8oiTOtC9p9UycyZxfdjGOStGyu"], ["created_at", "2019-12-06 01:51:52.570980"], ["updated_at", "2019-12-06 01:51:52.570980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.573376"], ["updated_at", "2019-12-06 01:51:52.573376"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/836/edit” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.575716"], ["last_sign_in_at", "2019-12-06 01:51:52.575716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.576396"], ["id", 960]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"836"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 836], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Qr3NTvnW96wW/biSaYNzwOQj.SKI3TvZqhBVVqcoxuaouWwVHupqO"], ["created_at", "2019-12-06 01:51:52.605652"], ["updated_at", "2019-12-06 01:51:52.605652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.608167"], ["updated_at", "2019-12-06 01:51:52.608167"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/837/edit” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.610469"], ["last_sign_in_at", "2019-12-06 01:51:52.610469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.611255"], ["id", 961]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"837"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 837], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.622224"], ["updated_at", "2019-12-06 01:51:52.622224"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/838” for 127.0.0.1 at 2019-12-05 22:51:52 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"838"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6Fzvk5Zde7aRs6486Jy25ORdhfShJ6eCCr.cg80sOPPI6nJD0uXTe"], ["created_at", "2019-12-06 01:51:52.633843"], ["updated_at", "2019-12-06 01:51:52.633843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.636610"], ["last_sign_in_at", "2019-12-06 01:51:52.636610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.637344"], ["id", 962]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.640495"], ["updated_at", "2019-12-06 01:51:52.640495"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kAQ06t0nkkDrowECQg909ucipS/fRabKR5flsLloF7QmdgA21Qugy"], ["created_at", "2019-12-06 01:51:52.649043"], ["updated_at", "2019-12-06 01:51:52.649043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.652076"], ["last_sign_in_at", "2019-12-06 01:51:52.652076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.652536"], ["id", 963]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.655768"], ["updated_at", "2019-12-06 01:51:52.655768"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ychL9qYf8n.2k11QO8uiJODQ6LcM.qzQM1xhFIyLZdneXtdj6EFBq"], ["created_at", "2019-12-06 01:51:52.664455"], ["updated_at", "2019-12-06 01:51:52.664455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.667211"], ["last_sign_in_at", "2019-12-06 01:51:52.667211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.667677"], ["id", 964]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mmwCgQfstfwgw9hL0Bpr8.bHBooz4yLBzx3vrMt8GtHgkUyhBuZOO"], ["created_at", "2019-12-06 01:51:52.686811"], ["updated_at", "2019-12-06 01:51:52.686811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.689182"], ["last_sign_in_at", "2019-12-06 01:51:52.689182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.689670"], ["id", 965]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6MC68skgtcG6M.X0sqtLzO5mwCOtU8Ho2gE5cdbyfQVObhOpJXqUC"], ["created_at", "2019-12-06 01:51:52.699924"], ["updated_at", "2019-12-06 01:51:52.699924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.702194"], ["last_sign_in_at", "2019-12-06 01:51:52.702194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.702658"], ["id", 966]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MwQi/6LBCALaGr7H92ri7eGWatCGyQs/Lxn1V321RCJLE.dia4NFa"], ["created_at", "2019-12-06 01:51:52.712057"], ["updated_at", "2019-12-06 01:51:52.712057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.714145"], ["updated_at", "2019-12-06 01:51:52.714145"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/841” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.716172"], ["last_sign_in_at", "2019-12-06 01:51:52.716172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.716674"], ["id", 967]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"841"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 841], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:51:52.720047"], ["id", 841]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/841 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U7PkTIQViY9lhO2w/qwg0O.UzYRd62W9/l9yr33mDcibcTTEsrbme"], ["created_at", "2019-12-06 01:51:52.727703"], ["updated_at", "2019-12-06 01:51:52.727703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.729769"], ["updated_at", "2019-12-06 01:51:52.729769"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/842” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.731779"], ["last_sign_in_at", "2019-12-06 01:51:52.731779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.732285"], ["id", 968]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"842"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 842], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:51:52.735638"], ["id", 842]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/842 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2ajLQahcso1QHryZmAoHTOdNgD/z0BW.H/UVGFgYyJRNQewreb1Bq"], ["created_at", "2019-12-06 01:51:52.744237"], ["updated_at", "2019-12-06 01:51:52.744237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.746314"], ["updated_at", "2019-12-06 01:51:52.746314"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/843” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.748333"], ["last_sign_in_at", "2019-12-06 01:51:52.748333"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.748818"], ["id", 969]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"843"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 843], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IiGZ4W06OI172GIg63S9SuHDz./nk7bEHlUMfHJvC0Sk6gw/rX7ky"], ["created_at", "2019-12-06 01:51:52.762677"], ["updated_at", "2019-12-06 01:51:52.762677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.764851"], ["updated_at", "2019-12-06 01:51:52.764851"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/844” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.767062"], ["last_sign_in_at", "2019-12-06 01:51:52.767062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.767554"], ["id", 970]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"844"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 844], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JprtIoxzFkDdImYBa9xyFeA5YPMSDpbUrt7YojTHQl0CHQtONnA82"], ["created_at", "2019-12-06 01:51:52.781568"], ["updated_at", "2019-12-06 01:51:52.781568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.784094"], ["last_sign_in_at", "2019-12-06 01:51:52.784094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.784599"], ["id", 971]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jgg4fkeyU4Fl.efcyNFgAu2K7FaB9.10woiDrl4jZfwBEqITHKdW2"], ["created_at", "2019-12-06 01:51:52.794766"], ["updated_at", "2019-12-06 01:51:52.794766"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.796912"], ["updated_at", "2019-12-06 01:51:52.796912"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/845” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.798758"], ["last_sign_in_at", "2019-12-06 01:51:52.798758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.799264"], ["id", 972]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"845"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 845], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 845]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pmrz1r8VXyUOoF6Bq3UhDulxd2owluUz2coTIjVB/qq6UgdwL.ZfS"], ["created_at", "2019-12-06 01:51:52.810793"], ["updated_at", "2019-12-06 01:51:52.810793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.812982"], ["updated_at", "2019-12-06 01:51:52.812982"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/846” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.814807"], ["last_sign_in_at", "2019-12-06 01:51:52.814807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.815285"], ["id", 973]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"846"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 846], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 846]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dmjG9uyJUF57oWB7OGnrPOTnLXvZdGkRu.adZ3tfxi248mIxzy0FO"], ["created_at", "2019-12-06 01:51:52.827750"], ["updated_at", "2019-12-06 01:51:52.827750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.829947"], ["updated_at", "2019-12-06 01:51:52.829947"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/847” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.831784"], ["last_sign_in_at", "2019-12-06 01:51:52.831784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.832284"], ["id", 974]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"847"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ugdgrPVMS6uIxAIUZRUPL.BvPBr/PYKO5HbpyUGdWo8o3IDK/IQ16"], ["created_at", "2019-12-06 01:51:52.841694"], ["updated_at", "2019-12-06 01:51:52.841694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.843999"], ["updated_at", "2019-12-06 01:51:52.843999"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/848” for 127.0.0.1 at 2019-12-05 22:51:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.845863"], ["last_sign_in_at", "2019-12-06 01:51:52.845863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.846370"], ["id", 975]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"848"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jaH3b0TG2GJkCgtQ9yYRSORjQx0x1xrOhx02gmbievL5O1YcA3jxi"], ["created_at", "2019-12-06 01:53:31.305708"], ["updated_at", "2019-12-06 01:53:31.305708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.314731"], ["updated_at", "2019-12-06 01:53:31.314731"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"849"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 849], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '849')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 150ms (Views: 106.9ms | ActiveRecord: 2.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qS..g.XE0.b.OersnyxyZe/.9nfgRmdZG8cuJFsbTzE1NhgL5bqa2"], ["created_at", "2019-12-06 01:53:31.475468"], ["updated_at", "2019-12-06 01:53:31.475468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.478032"], ["updated_at", "2019-12-06 01:53:31.478032"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 850], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 977], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 977], ["room_id", 850], ["created_at", "2019-12-06 01:53:31.513447"], ["updated_at", "2019-12-06 01:53:31.513447"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VVwp47ZFbYaG2gynpriNSeSsLA9g20nFfISCL1byUwwvXf9yiToX2"], ["created_at", "2019-12-06 01:53:31.520967"], ["updated_at", "2019-12-06 01:53:31.520967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.523195"], ["updated_at", "2019-12-06 01:53:31.523195"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 851], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 978], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 978], ["room_id", 851], ["created_at", "2019-12-06 01:53:31.527889"], ["updated_at", "2019-12-06 01:53:31.527889"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$GPp1Ql0/ndja34Amn9JxmOUSsntPTRwU9oSyYcY8nTj3YfXMwwCOO"], ["created_at", "2019-12-06 01:53:31.535807"], ["updated_at", "2019-12-06 01:53:31.535807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.537970"], ["updated_at", "2019-12-06 01:53:31.537970"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 852], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 979], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 979], ["room_id", 852], ["created_at", "2019-12-06 01:53:31.542506"], ["updated_at", "2019-12-06 01:53:31.542506"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HlxAdM7u6a4oRdgsvJebw.1Vw1pvAW0UBcsEB/RepbXMws7.teI8i"], ["created_at", "2019-12-06 01:53:31.550310"], ["updated_at", "2019-12-06 01:53:31.550310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.552495"], ["updated_at", "2019-12-06 01:53:31.552495"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 853], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 980], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 980], ["room_id", 853], ["created_at", "2019-12-06 01:53:31.556791"], ["updated_at", "2019-12-06 01:53:31.556791"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 103ms (Views: 73.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JyV7PetTVWWOXqMu/3WT6ezk6yAZKjtiNS3Y5X/9dx7uoNw.t1eFS"], ["created_at", "2019-12-06 01:53:32.110061"], ["updated_at", "2019-12-06 01:53:32.110061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.112341"], ["updated_at", "2019-12-06 01:53:32.112341"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.128188"], ["last_sign_in_at", "2019-12-06 01:53:32.128188"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.128867"], ["id", 981]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"854"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 854], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 981], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 981], ["room_id", 854], ["created_at", "2019-12-06 01:53:32.145349"], ["updated_at", "2019-12-06 01:53:32.145349"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 854], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$v9AspYLFaCBr4LA5lXWzhOJ/8gPOH76KP6OnEdka27O0.SmD3uuRa"], ["created_at", "2019-12-06 01:53:32.155342"], ["updated_at", "2019-12-06 01:53:32.155342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.157741"], ["updated_at", "2019-12-06 01:53:32.157741"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.160116"], ["last_sign_in_at", "2019-12-06 01:53:32.160116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.160787"], ["id", 982]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"855"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 855], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 982], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 982], ["room_id", 855], ["created_at", "2019-12-06 01:53:32.167098"], ["updated_at", "2019-12-06 01:53:32.167098"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$R6r9rakXiV6LJyh/pdgNj.aY251aITFuux78X67ZQpJ.417.a5V.K"], ["created_at", "2019-12-06 01:53:32.175098"], ["updated_at", "2019-12-06 01:53:32.175098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.177317"], ["updated_at", "2019-12-06 01:53:32.177317"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.180560"], ["last_sign_in_at", "2019-12-06 01:53:32.180560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.181342"], ["id", 983]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"856"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 856], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hJFMRgUBdJif3k9PEgE2bObDS2uOdfvJEPLipr4xjf.5WFnNpD6z."], ["created_at", "2019-12-06 01:53:32.190524"], ["updated_at", "2019-12-06 01:53:32.190524"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.192788"], ["updated_at", "2019-12-06 01:53:32.192788"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.195445"], ["last_sign_in_at", "2019-12-06 01:53:32.195445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.195988"], ["id", 984]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"857"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZD0ipKR9bX4QRVJeWVtzwOzU2i9PQ7lHgmkODh7b/R6Oh8wU0kW1."], ["created_at", "2019-12-06 01:53:32.205978"], ["updated_at", "2019-12-06 01:53:32.205978"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.208119"], ["updated_at", "2019-12-06 01:53:32.208119"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 858], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 985], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 985], ["room_id", 858], ["created_at", "2019-12-06 01:53:32.212253"], ["updated_at", "2019-12-06 01:53:32.212253"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/858” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.214792"], ["last_sign_in_at", "2019-12-06 01:53:32.214792"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.215304"], ["id", 985]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"858"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 858], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '858')[0m
Rendered appointments/show.html.erb within layouts/application (24.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 346ms (Views: 329.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ASna4hqMoK31x7fmTb/.wemTCIplAjA3iuKrgkTRk43hKXpbnY1D6"], ["created_at", "2019-12-06 01:53:32.571326"], ["updated_at", "2019-12-06 01:53:32.571326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.573540"], ["updated_at", "2019-12-06 01:53:32.573540"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 859], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 986], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 986], ["room_id", 859], ["created_at", "2019-12-06 01:53:32.577461"], ["updated_at", "2019-12-06 01:53:32.577461"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 859], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 986], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 986], ["room_id", 859], ["created_at", "2019-12-06 01:53:32.581388"], ["updated_at", "2019-12-06 01:53:32.581388"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.583724"], ["last_sign_in_at", "2019-12-06 01:53:32.583724"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.584251"], ["id", 986]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 986]] Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$44ZWe7thvQ4CQMVsIhrJzulordLU30lev1aB2Q6CmTpc7PsNNa50G"], ["created_at", "2019-12-06 01:53:32.627765"], ["updated_at", "2019-12-06 01:53:32.627765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.629875"], ["updated_at", "2019-12-06 01:53:32.629875"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 987], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 987], ["room_id", 860], ["created_at", "2019-12-06 01:53:32.633469"], ["updated_at", "2019-12-06 01:53:32.633469"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 987], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 987], ["room_id", 860], ["created_at", "2019-12-06 01:53:32.636950"], ["updated_at", "2019-12-06 01:53:32.636950"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.638957"], ["last_sign_in_at", "2019-12-06 01:53:32.638957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.639393"], ["id", 987]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 987]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$wZxmp7bIymuaN1flP8ciqeZBYp1vA.9n3BdgY.r0ehbl2fLot87Zq"], ["created_at", "2019-12-06 01:53:32.665432"], ["updated_at", "2019-12-06 01:53:32.665432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.667605"], ["updated_at", "2019-12-06 01:53:32.667605"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 988], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 988], ["room_id", 861], ["created_at", "2019-12-06 01:53:32.671172"], ["updated_at", "2019-12-06 01:53:32.671172"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/429” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.673481"], ["last_sign_in_at", "2019-12-06 01:53:32.673481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.674020"], ["id", 988]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"429"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 429], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 429]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xC6AvHK0W4e7JIdPdLFxou4b/QmGAj8J50fqHeOMuAAUh8/3bWLGy"], ["created_at", "2019-12-06 01:53:32.688359"], ["updated_at", "2019-12-06 01:53:32.688359"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.690689"], ["last_sign_in_at", "2019-12-06 01:53:32.690689"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.691261"], ["id", 989]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 34ms (Views: 18.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V3IIOu.m/DBVEZSWFBpWsuLnLrouamZbPgvGt5OXAeewedWcTrIES"], ["created_at", "2019-12-06 01:53:32.735592"], ["updated_at", "2019-12-06 01:53:32.735592"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.737816"], ["updated_at", "2019-12-06 01:53:32.737816"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 862], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 990], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 990], ["room_id", 862], ["created_at", "2019-12-06 01:53:32.741645"], ["updated_at", "2019-12-06 01:53:32.741645"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 862], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 990], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 990], ["room_id", 862], ["created_at", "2019-12-06 01:53:32.745841"], ["updated_at", "2019-12-06 01:53:32.745841"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.748146"], ["last_sign_in_at", "2019-12-06 01:53:32.748146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.748687"], ["id", 990]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 862], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 990], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 990], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AiYs5kLfTtY5Y7yYyWNz6udxSO3yLkKVcr7i1bmkw11x/j/.3hsGS"], ["created_at", "2019-12-06 01:53:32.762580"], ["updated_at", "2019-12-06 01:53:32.762580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.764836"], ["updated_at", "2019-12-06 01:53:32.764836"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 863], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 991], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 991], ["room_id", 863], ["created_at", "2019-12-06 01:53:32.768656"], ["updated_at", "2019-12-06 01:53:32.768656"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 863], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 991], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 991], ["room_id", 863], ["created_at", "2019-12-06 01:53:32.772575"], ["updated_at", "2019-12-06 01:53:32.772575"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.774879"], ["last_sign_in_at", "2019-12-06 01:53:32.774879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.775433"], ["id", 991]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 863], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 991], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 991], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2fYhVF8Um0wiMM4SZsLZceB4K4gJ/h9pEloZgx8xWzVhJ8iIsfP.m"], ["created_at", "2019-12-06 01:53:32.790242"], ["updated_at", "2019-12-06 01:53:32.790242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.792559"], ["updated_at", "2019-12-06 01:53:32.792559"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 864], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 992], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 992], ["room_id", 864], ["created_at", "2019-12-06 01:53:32.797812"], ["updated_at", "2019-12-06 01:53:32.797812"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 864], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 992], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 992], ["room_id", 864], ["created_at", "2019-12-06 01:53:32.801835"], ["updated_at", "2019-12-06 01:53:32.801835"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.804144"], ["last_sign_in_at", "2019-12-06 01:53:32.804144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.804666"], ["id", 992]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HD1W5TlBnHxv6QKtbKZsYuVJKbLAsG5zb5m6Ykje.FzVHeMfjKqWi"], ["created_at", "2019-12-06 01:53:32.816264"], ["updated_at", "2019-12-06 01:53:32.816264"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.818486"], ["updated_at", "2019-12-06 01:53:32.818486"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 865], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 993], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 993], ["room_id", 865], ["created_at", "2019-12-06 01:53:32.822351"], ["updated_at", "2019-12-06 01:53:32.822351"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 865], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 993], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 993], ["room_id", 865], ["created_at", "2019-12-06 01:53:32.826310"], ["updated_at", "2019-12-06 01:53:32.826310"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.829243"], ["last_sign_in_at", "2019-12-06 01:53:32.829243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.829968"], ["id", 993]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O04iSaDOjYLq9JxqjBvOIeJEVh7FyuNQBo6PL8bJ2KMpgslSxhNZO"], ["created_at", "2019-12-06 01:53:32.843921"], ["updated_at", "2019-12-06 01:53:32.843921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.846807"], ["last_sign_in_at", "2019-12-06 01:53:32.846807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.847388"], ["id", 994]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 63ms (Views: 47.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ks2Flaz/iIJ864IsYbIDS.uJd9XoVjcGVslJO7HCVaYLFtLNjlNM6"], ["created_at", "2019-12-06 01:53:32.922881"], ["updated_at", "2019-12-06 01:53:32.922881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.925861"], ["last_sign_in_at", "2019-12-06 01:53:32.925861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.926436"], ["id", 995]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pQh8HEW/7tssRZ8zKZzfquxqiRRnYZIyQT3lwdzyqruz7CARnSctm"], ["created_at", "2019-12-06 01:53:32.939225"], ["updated_at", "2019-12-06 01:53:32.939225"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.941934"], ["last_sign_in_at", "2019-12-06 01:53:32.941934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.942744"], ["id", 996]] [1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.5ms) Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eRS7ZFlKb5XB6tDNuvpypumLvALTD3BEir6hulpyNZg./dJ78WVTu"], ["created_at", "2019-12-06 01:53:32.973975"], ["updated_at", "2019-12-06 01:53:32.973975"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:32 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.976712"], ["last_sign_in_at", "2019-12-06 01:53:32.976712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.977315"], ["id", 997]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:32 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1jSrAGFdPIt.wrO.doFpr.c4hNDZj6rPpKqbHXoxgZeue0.IJIp1W"], ["created_at", "2019-12-06 01:53:33.004677"], ["updated_at", "2019-12-06 01:53:33.004677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.007283"], ["updated_at", "2019-12-06 01:53:33.007283"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/866” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.009981"], ["last_sign_in_at", "2019-12-06 01:53:33.009981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.010590"], ["id", 998]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"866"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 866], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 19ms (Views: 2.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qX8cxhrllZFLTx6LrcdV5eC1Gmp1FVufy7V5JqSPDZBfeONTRfNz6"], ["created_at", "2019-12-06 01:53:33.039117"], ["updated_at", "2019-12-06 01:53:33.039117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.041424"], ["updated_at", "2019-12-06 01:53:33.041424"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/867” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.043375"], ["last_sign_in_at", "2019-12-06 01:53:33.043375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.043916"], ["id", 999]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"867"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 867], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.054799"], ["updated_at", "2019-12-06 01:53:33.054799"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/868” for 127.0.0.1 at 2019-12-05 22:53:33 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"868"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2NdDpxqXWsxlDM7imO4fiONY6/.PAZt6eRdLr1qA3ZvVen7b5ua0W"], ["created_at", "2019-12-06 01:53:33.066240"], ["updated_at", "2019-12-06 01:53:33.066240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.068637"], ["updated_at", "2019-12-06 01:53:33.068637"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/869/edit” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.071045"], ["last_sign_in_at", "2019-12-06 01:53:33.071045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.071590"], ["id", 1000]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"869"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 869], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 4.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$moSIDGRYggibguglRN4FHem6lOv2Vo1ZpovCVyyG7Mpra4kqed/fC"], ["created_at", "2019-12-06 01:53:33.102366"], ["updated_at", "2019-12-06 01:53:33.102366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.105420"], ["updated_at", "2019-12-06 01:53:33.105420"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/870/edit” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.107873"], ["last_sign_in_at", "2019-12-06 01:53:33.107873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.108394"], ["id", 1001]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"870"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 870], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.4ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.120885"], ["updated_at", "2019-12-06 01:53:33.120885"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/871” for 127.0.0.1 at 2019-12-05 22:53:33 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"871"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dNR81ENAM7Pb3wopq/6RueO1z5xSeeC0lUBc/QyJBAbPj.PHNZCx."], ["created_at", "2019-12-06 01:53:33.133108"], ["updated_at", "2019-12-06 01:53:33.133108"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.136582"], ["last_sign_in_at", "2019-12-06 01:53:33.136582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.137152"], ["id", 1002]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.141000"], ["updated_at", "2019-12-06 01:53:33.141000"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.nqD6fhfwTNAoJSrjvXWFu9pRN8ppggZZSc45YZ9/lUKtANeZp9VO"], ["created_at", "2019-12-06 01:53:33.150686"], ["updated_at", "2019-12-06 01:53:33.150686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.153556"], ["last_sign_in_at", "2019-12-06 01:53:33.153556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.154063"], ["id", 1003]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.157912"], ["updated_at", "2019-12-06 01:53:33.157912"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rk/nlqQV7yVH83M6ZAkTKOm7X9vRxnoCDk1cRQFyCqjwgax3h3tSy"], ["created_at", "2019-12-06 01:53:33.168675"], ["updated_at", "2019-12-06 01:53:33.168675"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.172313"], ["last_sign_in_at", "2019-12-06 01:53:33.172313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.172834"], ["id", 1004]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.YqdDvHrGYyZqQoY7J5DGOta06mPU3WNZfTMks/z97mdmtXl9rMZO"], ["created_at", "2019-12-06 01:53:33.185829"], ["updated_at", "2019-12-06 01:53:33.185829"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.197473"], ["last_sign_in_at", "2019-12-06 01:53:33.197473"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.198049"], ["id", 1005]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vOlaL2KggvgiQc7QGlXVvuQrvPO/GapYhC2k6wPzy.HC/ZGHsLyqa"], ["created_at", "2019-12-06 01:53:33.209406"], ["updated_at", "2019-12-06 01:53:33.209406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.212507"], ["last_sign_in_at", "2019-12-06 01:53:33.212507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.213063"], ["id", 1006]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zjPnB9emTKpTgKItJFOQ6.msIHOk9KOaecSTvhIBcAYWyX8cg/8M."], ["created_at", "2019-12-06 01:53:33.223846"], ["updated_at", "2019-12-06 01:53:33.223846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.225982"], ["updated_at", "2019-12-06 01:53:33.225982"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/874” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.228507"], ["last_sign_in_at", "2019-12-06 01:53:33.228507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.229092"], ["id", 1007]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"874"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 874], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:33.232866"], ["id", 874]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/874 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3blM2M8v8S5OypVRfQk9quL6UktxxH5aDkdh5fF1c44k02InvvTnS"], ["created_at", "2019-12-06 01:53:33.240879"], ["updated_at", "2019-12-06 01:53:33.240879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.243046"], ["updated_at", "2019-12-06 01:53:33.243046"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/875” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.245597"], ["last_sign_in_at", "2019-12-06 01:53:33.245597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.246148"], ["id", 1008]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"875"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 875], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:33.250258"], ["id", 875]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/875 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ONZQI.wZLZJUbgnP6bPgeuqlEFJ2HL/YPQzOfKtlCb1RGsWmZNQay"], ["created_at", "2019-12-06 01:53:33.258459"], ["updated_at", "2019-12-06 01:53:33.258459"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.260730"], ["updated_at", "2019-12-06 01:53:33.260730"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/876” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.263347"], ["last_sign_in_at", "2019-12-06 01:53:33.263347"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.263883"], ["id", 1009]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"876"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 876], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YX3OgTSXRozCKaWwm3iXIuP60qQ6ywbz27D2lHmEpMFBBaq3IpYZm"], ["created_at", "2019-12-06 01:53:33.279491"], ["updated_at", "2019-12-06 01:53:33.279491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.282330"], ["updated_at", "2019-12-06 01:53:33.282330"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/877” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.285062"], ["last_sign_in_at", "2019-12-06 01:53:33.285062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.285610"], ["id", 1010]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"877"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 877], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MCXSkqMAu/Z404Jp84KwXeKZkHLIOxTY.ifiY/ilN1/eHwgRJ2vXW"], ["created_at", "2019-12-06 01:53:33.300242"], ["updated_at", "2019-12-06 01:53:33.300242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.302744"], ["last_sign_in_at", "2019-12-06 01:53:33.302744"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.303223"], ["id", 1011]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v9.MSXeYv5NW5Dsp6aCTNu1Y53YQojcM8z2EA6QK9ydrcRT3j13oy"], ["created_at", "2019-12-06 01:53:33.313902"], ["updated_at", "2019-12-06 01:53:33.313902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.316170"], ["updated_at", "2019-12-06 01:53:33.316170"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/878” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.318010"], ["last_sign_in_at", "2019-12-06 01:53:33.318010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.318511"], ["id", 1012]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"878"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 878], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 878]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NtrScPcFFqAY6OTC781Jte9D2LuV6sua4Ynni6rh.tIm7o4M9i77O"], ["created_at", "2019-12-06 01:53:33.329675"], ["updated_at", "2019-12-06 01:53:33.329675"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.331858"], ["updated_at", "2019-12-06 01:53:33.331858"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/879” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.333677"], ["last_sign_in_at", "2019-12-06 01:53:33.333677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.334149"], ["id", 1013]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"879"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 879], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 879]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MUlN.BaQdgHCnumfl3fBkufef9OMIRTP.bZY.Uzx7IorJ0Ly2wgqW"], ["created_at", "2019-12-06 01:53:33.345532"], ["updated_at", "2019-12-06 01:53:33.345532"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.347822"], ["updated_at", "2019-12-06 01:53:33.347822"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/880” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.349669"], ["last_sign_in_at", "2019-12-06 01:53:33.349669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.350154"], ["id", 1014]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"880"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ftaCajbPkth1sldNBMEI5.rBqHPFm15fBqNQbNDXDOSz5q22FGBKS"], ["created_at", "2019-12-06 01:53:33.358963"], ["updated_at", "2019-12-06 01:53:33.358963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.361810"], ["updated_at", "2019-12-06 01:53:33.361810"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/881” for 127.0.0.1 at 2019-12-05 22:53:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.363797"], ["last_sign_in_at", "2019-12-06 01:53:33.363797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.364298"], ["id", 1015]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"881"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Mwa7CDLGWKO0tCxDYbJxle9DfNDSevsiqKw2dDjqB362TjAViMkUK"], ["created_at", "2019-12-06 01:53:57.072249"], ["updated_at", "2019-12-06 01:53:57.072249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.081021"], ["updated_at", "2019-12-06 01:53:57.081021"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"882"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 882], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '882')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 152ms (Views: 108.8ms | ActiveRecord: 2.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xjohFVj99dlOALnnr2plzOWsyhKnUkq4UpJ0P6z0JGPCHCpAdQbW."], ["created_at", "2019-12-06 01:53:57.242563"], ["updated_at", "2019-12-06 01:53:57.242563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.244997"], ["updated_at", "2019-12-06 01:53:57.244997"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 883], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1017], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1017], ["room_id", 883], ["created_at", "2019-12-06 01:53:57.281448"], ["updated_at", "2019-12-06 01:53:57.281448"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"883"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 883], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '883')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$mPcllr7ecYR6o.UetmLgne9W8dVE3GhNQufLIyR99PeiQlEDbuSKm"], ["created_at", "2019-12-06 01:53:57.443043"], ["updated_at", "2019-12-06 01:53:57.443043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.445388"], ["updated_at", "2019-12-06 01:53:57.445388"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 884], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1018], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1018], ["room_id", 884], ["created_at", "2019-12-06 01:53:57.449284"], ["updated_at", "2019-12-06 01:53:57.449284"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"884"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 884], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '884')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0KGzPuukf4KUL.G/jtEBleqJEh8kWhEzSmE8EAhG4RHeGMT14QYI."], ["created_at", "2019-12-06 01:53:57.468787"], ["updated_at", "2019-12-06 01:53:57.468787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.471212"], ["updated_at", "2019-12-06 01:53:57.471212"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 885], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1019], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1019], ["room_id", 885], ["created_at", "2019-12-06 01:53:57.474962"], ["updated_at", "2019-12-06 01:53:57.474962"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"885"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 885], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '885')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$48rQpz9aNXF3tT/iP2dlXeEsbNePoLQCYnx0kqgPbqAJZEe0xnekq"], ["created_at", "2019-12-06 01:53:57.493758"], ["updated_at", "2019-12-06 01:53:57.493758"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.496528"], ["updated_at", "2019-12-06 01:53:57.496528"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 886], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1020], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1020], ["room_id", 886], ["created_at", "2019-12-06 01:53:57.500311"], ["updated_at", "2019-12-06 01:53:57.500311"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"886"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 886], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '886')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 102ms (Views: 71.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3jed4QtceXl5MkRTzBO4JOruwpoqWvo5Qv5XkFNgy/Y6JIOjTSyqm"], ["created_at", "2019-12-06 01:53:58.070933"], ["updated_at", "2019-12-06 01:53:58.070933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.073152"], ["updated_at", "2019-12-06 01:53:58.073152"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.088843"], ["last_sign_in_at", "2019-12-06 01:53:58.088843"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.089487"], ["id", 1021]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"887"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 887], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1021], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1021], ["room_id", 887], ["created_at", "2019-12-06 01:53:58.106325"], ["updated_at", "2019-12-06 01:53:58.106325"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 887], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zsz7OUSgUddOQnW4AAJKAeHdfwLOW1.jXAV3b1Qn1WXi3E8DgWerO"], ["created_at", "2019-12-06 01:53:58.116284"], ["updated_at", "2019-12-06 01:53:58.116284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.118682"], ["updated_at", "2019-12-06 01:53:58.118682"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.121234"], ["last_sign_in_at", "2019-12-06 01:53:58.121234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.121775"], ["id", 1022]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"888"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 888], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1022], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1022], ["room_id", 888], ["created_at", "2019-12-06 01:53:58.126945"], ["updated_at", "2019-12-06 01:53:58.126945"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$18ttfNPih8eYZ53OklopiOaPWPjFsIEPVarQ9anR.U5xvckIz33XK"], ["created_at", "2019-12-06 01:53:58.136118"], ["updated_at", "2019-12-06 01:53:58.136118"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.138450"], ["updated_at", "2019-12-06 01:53:58.138450"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.140915"], ["last_sign_in_at", "2019-12-06 01:53:58.140915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.141517"], ["id", 1023]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"889"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 889], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.9re5iRqH5WQJBBWGFE8qOZTA97bzBHAdBiP0Vo8E8XBEoKHlKFoy"], ["created_at", "2019-12-06 01:53:58.151568"], ["updated_at", "2019-12-06 01:53:58.151568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.153721"], ["updated_at", "2019-12-06 01:53:58.153721"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.156007"], ["last_sign_in_at", "2019-12-06 01:53:58.156007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.156494"], ["id", 1024]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"890"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.kXA2UfC7qj2/CyCOv0dgu25jSgPxnOJZJ74SKFE6qlslI1dahqmi"], ["created_at", "2019-12-06 01:53:58.167351"], ["updated_at", "2019-12-06 01:53:58.167351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.169483"], ["updated_at", "2019-12-06 01:53:58.169483"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 891], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1025], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1025], ["room_id", 891], ["created_at", "2019-12-06 01:53:58.173376"], ["updated_at", "2019-12-06 01:53:58.173376"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/891” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.176323"], ["last_sign_in_at", "2019-12-06 01:53:58.176323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.176909"], ["id", 1025]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"891"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 891], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '891')[0m
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 386ms (Views: 369.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NqA0JMdkCScC4Fcii4B4K.qsByvAq6anFI1.j04Q3nAQ2DcARYAsO"], ["created_at", "2019-12-06 01:53:58.574279"], ["updated_at", "2019-12-06 01:53:58.574279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.576405"], ["updated_at", "2019-12-06 01:53:58.576405"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 892], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1026], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1026], ["room_id", 892], ["created_at", "2019-12-06 01:53:58.580674"], ["updated_at", "2019-12-06 01:53:58.580674"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 892], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1026], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1026], ["room_id", 892], ["created_at", "2019-12-06 01:53:58.584867"], ["updated_at", "2019-12-06 01:53:58.584867"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.587117"], ["last_sign_in_at", "2019-12-06 01:53:58.587117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.587659"], ["id", 1026]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1026]] Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$F6N3Srvqe6yeOhypPwms0.gZVGC2t9dvNUZ5TelNX/mWg87WTfMey"], ["created_at", "2019-12-06 01:53:58.630857"], ["updated_at", "2019-12-06 01:53:58.630857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.632908"], ["updated_at", "2019-12-06 01:53:58.632908"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 893], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1027], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1027], ["room_id", 893], ["created_at", "2019-12-06 01:53:58.636272"], ["updated_at", "2019-12-06 01:53:58.636272"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 893], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1027], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1027], ["room_id", 893], ["created_at", "2019-12-06 01:53:58.639642"], ["updated_at", "2019-12-06 01:53:58.639642"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.641741"], ["last_sign_in_at", "2019-12-06 01:53:58.641741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.642238"], ["id", 1027]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1027]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$a0dTCHDFVC9a3BWNi1axs.Imo5gYyFvzTrjc55eJpDpj7aSjferLe"], ["created_at", "2019-12-06 01:53:58.655065"], ["updated_at", "2019-12-06 01:53:58.655065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.657311"], ["updated_at", "2019-12-06 01:53:58.657311"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 894], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1028], ["room_id", 894], ["created_at", "2019-12-06 01:53:58.661488"], ["updated_at", "2019-12-06 01:53:58.661488"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/449” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.664240"], ["last_sign_in_at", "2019-12-06 01:53:58.664240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.664739"], ["id", 1028]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"449"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 449], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 449]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D4N6QIDQ4OsQ7Z.YmFYp/O5XGHOaZAYBbL4XRuJVk0r8vZLVINzL2"], ["created_at", "2019-12-06 01:53:58.679337"], ["updated_at", "2019-12-06 01:53:58.679337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.681838"], ["last_sign_in_at", "2019-12-06 01:53:58.681838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.682411"], ["id", 1029]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NhnBDJph4z/z8ViFD4fdEOSV4F.hV3MPHN5bQufHMHdPNN9XZWgv."], ["created_at", "2019-12-06 01:53:58.727086"], ["updated_at", "2019-12-06 01:53:58.727086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.729684"], ["updated_at", "2019-12-06 01:53:58.729684"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 895], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1030], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1030], ["room_id", 895], ["created_at", "2019-12-06 01:53:58.733562"], ["updated_at", "2019-12-06 01:53:58.733562"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 895], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1030], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1030], ["room_id", 895], ["created_at", "2019-12-06 01:53:58.737376"], ["updated_at", "2019-12-06 01:53:58.737376"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.739622"], ["last_sign_in_at", "2019-12-06 01:53:58.739622"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.740185"], ["id", 1030]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 895], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1030], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1030], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fSfty.RosFOjXNpF/P3Bvu.gPfByo/6zZOFOkEOjeL9gatlnCto0."], ["created_at", "2019-12-06 01:53:58.754025"], ["updated_at", "2019-12-06 01:53:58.754025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.756284"], ["updated_at", "2019-12-06 01:53:58.756284"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 896], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1031], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1031], ["room_id", 896], ["created_at", "2019-12-06 01:53:58.760159"], ["updated_at", "2019-12-06 01:53:58.760159"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 896], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1031], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1031], ["room_id", 896], ["created_at", "2019-12-06 01:53:58.764555"], ["updated_at", "2019-12-06 01:53:58.764555"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.766808"], ["last_sign_in_at", "2019-12-06 01:53:58.766808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.767312"], ["id", 1031]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 896], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1031], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1031], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y7WKw4Qwub1h25aLeAylMOPiSrFF9HjB8ccPGlcDV/nH9i33ORZQi"], ["created_at", "2019-12-06 01:53:58.782757"], ["updated_at", "2019-12-06 01:53:58.782757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.784896"], ["updated_at", "2019-12-06 01:53:58.784896"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 897], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1032], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1032], ["room_id", 897], ["created_at", "2019-12-06 01:53:58.788799"], ["updated_at", "2019-12-06 01:53:58.788799"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 897], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1032], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1032], ["room_id", 897], ["created_at", "2019-12-06 01:53:58.792593"], ["updated_at", "2019-12-06 01:53:58.792593"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.795107"], ["last_sign_in_at", "2019-12-06 01:53:58.795107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.795815"], ["id", 1032]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Hgq7Ji4E0S0aYRsgWx68DOpnT9tPIFTir6raDUH2QEKgE1AHk0CbG"], ["created_at", "2019-12-06 01:53:58.806819"], ["updated_at", "2019-12-06 01:53:58.806819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.809004"], ["updated_at", "2019-12-06 01:53:58.809004"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 898], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1033], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1033], ["room_id", 898], ["created_at", "2019-12-06 01:53:58.813514"], ["updated_at", "2019-12-06 01:53:58.813514"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 898], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1033], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1033], ["room_id", 898], ["created_at", "2019-12-06 01:53:58.817615"], ["updated_at", "2019-12-06 01:53:58.817615"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.820004"], ["last_sign_in_at", "2019-12-06 01:53:58.820004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.820533"], ["id", 1033]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PoDWZdhtRTKA7eJk534RUurw.rYWj8Jda4yVrzVnhYX5R8mUf2Dxe"], ["created_at", "2019-12-06 01:53:58.834151"], ["updated_at", "2019-12-06 01:53:58.834151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.836775"], ["last_sign_in_at", "2019-12-06 01:53:58.836775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.837476"], ["id", 1034]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 47.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3D9nov9c13iO4Y2x.ON9re93dHHMpo/9ADvGLMo2I04PcItbTQJXy"], ["created_at", "2019-12-06 01:53:58.912904"], ["updated_at", "2019-12-06 01:53:58.912904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.915320"], ["last_sign_in_at", "2019-12-06 01:53:58.915320"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.915806"], ["id", 1035]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p5wMHamVR4XtRKjA1yzV4.1toenphPlpJDQWbxv4VyRF3kiJ1rIx2"], ["created_at", "2019-12-06 01:53:58.926355"], ["updated_at", "2019-12-06 01:53:58.926355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.928924"], ["last_sign_in_at", "2019-12-06 01:53:58.928924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.929506"], ["id", 1036]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kOn1K1By1Mei039o5ULOBODO409tAwB7dl5E8Bi5hC4fY.2ZQxrnm"], ["created_at", "2019-12-06 01:53:58.956448"], ["updated_at", "2019-12-06 01:53:58.956448"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.958680"], ["last_sign_in_at", "2019-12-06 01:53:58.958680"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.959151"], ["id", 1037]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.4ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:58 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iQtfaK.Tp8gXn.LsDnpc9.gyKY9wk7xMo.50hsVUv2oA.nEnf2gv."], ["created_at", "2019-12-06 01:53:58.977773"], ["updated_at", "2019-12-06 01:53:58.977773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.980370"], ["updated_at", "2019-12-06 01:53:58.980370"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/899” for 127.0.0.1 at 2019-12-05 22:53:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.982434"], ["last_sign_in_at", "2019-12-06 01:53:58.982434"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.982911"], ["id", 1038]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"899"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 899], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qJpEN/FMWoUQc3JEqdSYiOUhHL2vek4adRBCP8I29Q/WrDwybPVGO"], ["created_at", "2019-12-06 01:53:59.008919"], ["updated_at", "2019-12-06 01:53:59.008919"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.010942"], ["updated_at", "2019-12-06 01:53:59.010942"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/900” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.013167"], ["last_sign_in_at", "2019-12-06 01:53:59.013167"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.013654"], ["id", 1039]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"900"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 900], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.022810"], ["updated_at", "2019-12-06 01:53:59.022810"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/901” for 127.0.0.1 at 2019-12-05 22:53:59 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"901"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9zSUT/4jX/15LhQL4c1MTekmhOZ6s7OlaKOoWJGqw2tIf/Ckt3dx6"], ["created_at", "2019-12-06 01:53:59.032907"], ["updated_at", "2019-12-06 01:53:59.032907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.035100"], ["updated_at", "2019-12-06 01:53:59.035100"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/902/edit” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.037054"], ["last_sign_in_at", "2019-12-06 01:53:59.037054"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.037521"], ["id", 1040]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"902"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 902], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v8c2tyVTK9.oB4RyXsKJtO7VNO3gT.W7sZ0mEp3bflYw4bNIKzDOa"], ["created_at", "2019-12-06 01:53:59.064846"], ["updated_at", "2019-12-06 01:53:59.064846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.067098"], ["updated_at", "2019-12-06 01:53:59.067098"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/903/edit” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.069246"], ["last_sign_in_at", "2019-12-06 01:53:59.069246"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.077093"], ["id", 1041]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"903"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 903], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.087967"], ["updated_at", "2019-12-06 01:53:59.087967"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/904” for 127.0.0.1 at 2019-12-05 22:53:59 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"904"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oADfQMoZT2A1srjSDKfWGearMsRPQ38xo911nqYLogcmjc3twGGkC"], ["created_at", "2019-12-06 01:53:59.098780"], ["updated_at", "2019-12-06 01:53:59.098780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.101202"], ["last_sign_in_at", "2019-12-06 01:53:59.101202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.101669"], ["id", 1042]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.104813"], ["updated_at", "2019-12-06 01:53:59.104813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HWMpO7Grg6ULWyiiNv9X6uN9V6QJNA9bssM9rBw2GgzMJB9Y2oGL6"], ["created_at", "2019-12-06 01:53:59.112471"], ["updated_at", "2019-12-06 01:53:59.112471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.115468"], ["last_sign_in_at", "2019-12-06 01:53:59.115468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.116023"], ["id", 1043]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.119131"], ["updated_at", "2019-12-06 01:53:59.119131"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yvBm.z7WFTkL2xMwvSehleAfpzzVBXLSf3lArywupUt/QAOYjObAC"], ["created_at", "2019-12-06 01:53:59.127392"], ["updated_at", "2019-12-06 01:53:59.127392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.130350"], ["last_sign_in_at", "2019-12-06 01:53:59.130350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.130962"], ["id", 1044]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1B9dHBLnk3ETfjIkBm/m0Ogas6xWIOtvVeLjTiv5LISrGpXZS8aaC"], ["created_at", "2019-12-06 01:53:59.141727"], ["updated_at", "2019-12-06 01:53:59.141727"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.144324"], ["last_sign_in_at", "2019-12-06 01:53:59.144324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.145094"], ["id", 1045]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jNhzd0EH3RcOSYizd46R.um3aAJw1gGShdjgpNqIiWmVMWqHny5Se"], ["created_at", "2019-12-06 01:53:59.157280"], ["updated_at", "2019-12-06 01:53:59.157280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.160108"], ["last_sign_in_at", "2019-12-06 01:53:59.160108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.160727"], ["id", 1046]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Umm/XbdkeZcV2.10DVifeQXcMnut.mxES4ClYbB9nJlGnQwGb5.m"], ["created_at", "2019-12-06 01:53:59.172807"], ["updated_at", "2019-12-06 01:53:59.172807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.175209"], ["updated_at", "2019-12-06 01:53:59.175209"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/907” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.177608"], ["last_sign_in_at", "2019-12-06 01:53:59.177608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.178310"], ["id", 1047]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"907"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 907], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:59.183316"], ["id", 907]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/907 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SvlPTxHtd/6bGTahmvg4QOnmszA24u3A5iVP3LPLWdR/zC91rpUB."], ["created_at", "2019-12-06 01:53:59.191844"], ["updated_at", "2019-12-06 01:53:59.191844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.194345"], ["updated_at", "2019-12-06 01:53:59.194345"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/908” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.197520"], ["last_sign_in_at", "2019-12-06 01:53:59.197520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.198269"], ["id", 1048]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"908"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 908], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:59.202483"], ["id", 908]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/908 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RdbfRP8UCqXNGyr5id.x4eouL5/Ghzi.5ROYyLHkYM.ZajclCitCq"], ["created_at", "2019-12-06 01:53:59.210397"], ["updated_at", "2019-12-06 01:53:59.210397"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.212899"], ["updated_at", "2019-12-06 01:53:59.212899"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/909” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.215325"], ["last_sign_in_at", "2019-12-06 01:53:59.215325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.215828"], ["id", 1049]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"909"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 909], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J2R9sLdGrk81ApyFS6MIw.AQJDjP11qGvRzCtoqjraTeOFMHWAHt2"], ["created_at", "2019-12-06 01:53:59.229720"], ["updated_at", "2019-12-06 01:53:59.229720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.232000"], ["updated_at", "2019-12-06 01:53:59.232000"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/910” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.234281"], ["last_sign_in_at", "2019-12-06 01:53:59.234281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.234772"], ["id", 1050]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"910"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 910], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gBLsq07TRqJkQO5sgT1AcemYGEQBy0LGmmJRKAgAh7FpAaIGEn1Im"], ["created_at", "2019-12-06 01:53:59.249450"], ["updated_at", "2019-12-06 01:53:59.249450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.251972"], ["last_sign_in_at", "2019-12-06 01:53:59.251972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.252455"], ["id", 1051]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FwhotSfBr2EDNSRDcqbLke17CvMnnT55Ekp81vcCYiGfe16nIwV2C"], ["created_at", "2019-12-06 01:53:59.262457"], ["updated_at", "2019-12-06 01:53:59.262457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.264751"], ["updated_at", "2019-12-06 01:53:59.264751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/911” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.266627"], ["last_sign_in_at", "2019-12-06 01:53:59.266627"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.267128"], ["id", 1052]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"911"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 911], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 911]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GI0jgOHPI0oqfo/bRNx1a.DyvyQSe0yEVRDUj32s5ZQz9Qt/QUP7C"], ["created_at", "2019-12-06 01:53:59.277802"], ["updated_at", "2019-12-06 01:53:59.277802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.280418"], ["updated_at", "2019-12-06 01:53:59.280418"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/912” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.282326"], ["last_sign_in_at", "2019-12-06 01:53:59.282326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.282814"], ["id", 1053]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"912"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 912], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 912]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jtBOt08xUzjAl88HHvd9ZO3FnZ/E87va1YD2QR.Aw7tyyPbhg5XHK"], ["created_at", "2019-12-06 01:53:59.294272"], ["updated_at", "2019-12-06 01:53:59.294272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.296920"], ["updated_at", "2019-12-06 01:53:59.296920"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/913” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.298902"], ["last_sign_in_at", "2019-12-06 01:53:59.298902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.299385"], ["id", 1054]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"913"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ai7JBlGeUR26Ts/FYb183OJFLaGziw1YKRH7ia7qurUUfzRZjpJUO"], ["created_at", "2019-12-06 01:53:59.308889"], ["updated_at", "2019-12-06 01:53:59.308889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.311298"], ["updated_at", "2019-12-06 01:53:59.311298"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/914” for 127.0.0.1 at 2019-12-05 22:53:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.313568"], ["last_sign_in_at", "2019-12-06 01:53:59.313568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.314088"], ["id", 1055]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"914"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$M7Vy13XTvkN3eVjfDXo5Vev3uBVZqjl2m//J/4pWcs3vm/yo59SiK"], ["created_at", "2019-12-06 01:56:21.290287"], ["updated_at", "2019-12-06 01:56:21.290287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.299153"], ["updated_at", "2019-12-06 01:56:21.299153"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"915"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 915], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '915')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 151ms (Views: 107.7ms | ActiveRecord: 2.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/toBqxbR0X5WX/KNLZFUEeTXXsYxbw/mrSFlSfzW1B/nl1h4vqNPa"], ["created_at", "2019-12-06 01:56:21.459955"], ["updated_at", "2019-12-06 01:56:21.459955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.462291"], ["updated_at", "2019-12-06 01:56:21.462291"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 916], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1057], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1057], ["room_id", 916], ["created_at", "2019-12-06 01:56:21.497394"], ["updated_at", "2019-12-06 01:56:21.497394"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"916"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 916], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '916')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$t0EdksilOwINw/SPV7/OZ.vnUPpVL291vKD8jeeUeyw1qTbPbuJuy"], ["created_at", "2019-12-06 01:56:21.536579"], ["updated_at", "2019-12-06 01:56:21.536579"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.538771"], ["updated_at", "2019-12-06 01:56:21.538771"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 917], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1058], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1058], ["room_id", 917], ["created_at", "2019-12-06 01:56:21.542429"], ["updated_at", "2019-12-06 01:56:21.542429"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"917"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 917], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '917')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$l4tYu.kJ7z7gCWQmq5s2xufzd0Bn.29eGXDhqt/Bm0zQ2LlmacS9y"], ["created_at", "2019-12-06 01:56:21.561286"], ["updated_at", "2019-12-06 01:56:21.561286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.563472"], ["updated_at", "2019-12-06 01:56:21.563472"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 918], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1059], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1059], ["room_id", 918], ["created_at", "2019-12-06 01:56:21.567763"], ["updated_at", "2019-12-06 01:56:21.567763"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"918"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 918], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '918')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IKrolMGZEuzmYUbfvj329.VwckYO5sjcT//.x6jOGx2qbD6pB08WC"], ["created_at", "2019-12-06 01:56:21.588098"], ["updated_at", "2019-12-06 01:56:21.588098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.590339"], ["updated_at", "2019-12-06 01:56:21.590339"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 919], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1060], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1060], ["room_id", 919], ["created_at", "2019-12-06 01:56:21.594043"], ["updated_at", "2019-12-06 01:56:21.594043"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"919"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 919], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '919')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 105ms (Views: 74.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ghq7EZ8mvzWq3FvtHCIYWe33H.tRplfIBC1/J4c8gNhUrLBCd9DA."], ["created_at", "2019-12-06 01:56:22.162351"], ["updated_at", "2019-12-06 01:56:22.162351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.164743"], ["updated_at", "2019-12-06 01:56:22.164743"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.180903"], ["last_sign_in_at", "2019-12-06 01:56:22.180903"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.181637"], ["id", 1061]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"920"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 920], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1061], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1061], ["room_id", 920], ["created_at", "2019-12-06 01:56:22.201753"], ["updated_at", "2019-12-06 01:56:22.201753"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 920], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$eqWU/SmrfpUmy5kB05Xlm.h4HFBNOJgJOuvjH9FqeEWOJwzOfjJ0O"], ["created_at", "2019-12-06 01:56:22.210495"], ["updated_at", "2019-12-06 01:56:22.210495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.212821"], ["updated_at", "2019-12-06 01:56:22.212821"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.215149"], ["last_sign_in_at", "2019-12-06 01:56:22.215149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.215733"], ["id", 1062]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"921"}
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 921], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1062], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1062], ["room_id", 921], ["created_at", "2019-12-06 01:56:22.220285"], ["updated_at", "2019-12-06 01:56:22.220285"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$AnlflgRFUiDAut0KXe1/yepACPBSPoBaICokDjbZv9dxhAk4YIkn."], ["created_at", "2019-12-06 01:56:22.228237"], ["updated_at", "2019-12-06 01:56:22.228237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.230235"], ["updated_at", "2019-12-06 01:56:22.230235"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.232614"], ["last_sign_in_at", "2019-12-06 01:56:22.232614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.233469"], ["id", 1063]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"922"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 922], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rBzMaYpiZBkC0Pr0zPZKbupPUtzZ00W6YITqte0mZDDnSYGQQp2F6"], ["created_at", "2019-12-06 01:56:22.241655"], ["updated_at", "2019-12-06 01:56:22.241655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.243757"], ["updated_at", "2019-12-06 01:56:22.243757"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.245917"], ["last_sign_in_at", "2019-12-06 01:56:22.245917"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.246365"], ["id", 1064]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"923"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1lzKFEh.RLwl8un5Hp0Kh.CcE4HaVdzEZiV2MTLi3ymT2r6WE27gG"], ["created_at", "2019-12-06 01:56:22.255908"], ["updated_at", "2019-12-06 01:56:22.255908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.257872"], ["updated_at", "2019-12-06 01:56:22.257872"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 924], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1065], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1065], ["room_id", 924], ["created_at", "2019-12-06 01:56:22.261302"], ["updated_at", "2019-12-06 01:56:22.261302"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/924” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.263544"], ["last_sign_in_at", "2019-12-06 01:56:22.263544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.264061"], ["id", 1065]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"924"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 924], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '924')[0m
Rendered appointments/show.html.erb within layouts/application (20.6ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 387ms (Views: 369.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$vhx2QVkfNiWTEHSMX2ZBw./otUiSIb.haj5wyZw1.AZjFKocwq7kO"], ["created_at", "2019-12-06 01:56:22.660955"], ["updated_at", "2019-12-06 01:56:22.660955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.663127"], ["updated_at", "2019-12-06 01:56:22.663127"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 925], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1066], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1066], ["room_id", 925], ["created_at", "2019-12-06 01:56:22.667151"], ["updated_at", "2019-12-06 01:56:22.667151"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 925], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1066], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1066], ["room_id", 925], ["created_at", "2019-12-06 01:56:22.670960"], ["updated_at", "2019-12-06 01:56:22.670960"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.673560"], ["last_sign_in_at", "2019-12-06 01:56:22.673560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.674057"], ["id", 1066]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1066]] Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 37ms (Views: 4.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qjkVi.ke4STgk4jdW2pSKuoMbQvUTdil3xv2cjIubZhr57pUV5Khy"], ["created_at", "2019-12-06 01:56:22.719645"], ["updated_at", "2019-12-06 01:56:22.719645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.722033"], ["updated_at", "2019-12-06 01:56:22.722033"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 926], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1067], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1067], ["room_id", 926], ["created_at", "2019-12-06 01:56:22.726208"], ["updated_at", "2019-12-06 01:56:22.726208"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 926], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1067], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1067], ["room_id", 926], ["created_at", "2019-12-06 01:56:22.730613"], ["updated_at", "2019-12-06 01:56:22.730613"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.733474"], ["last_sign_in_at", "2019-12-06 01:56:22.733474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.734144"], ["id", 1067]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1067]] Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kMquyVQ9rLcSEtHc38Ed.eLgPZY/IkPNU2vaFGkX7SEgYG0zrczZm"], ["created_at", "2019-12-06 01:56:22.748243"], ["updated_at", "2019-12-06 01:56:22.748243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.751062"], ["updated_at", "2019-12-06 01:56:22.751062"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 927], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1068], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1068], ["room_id", 927], ["created_at", "2019-12-06 01:56:22.755004"], ["updated_at", "2019-12-06 01:56:22.755004"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/469” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.757341"], ["last_sign_in_at", "2019-12-06 01:56:22.757341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.757836"], ["id", 1068]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"469"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 469], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 469]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EQlbR4V16C.gukisbHYLPOdlhNXMn4moxLXWHRdsIz72vLaENHTTC"], ["created_at", "2019-12-06 01:56:22.771571"], ["updated_at", "2019-12-06 01:56:22.771571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.774103"], ["last_sign_in_at", "2019-12-06 01:56:22.774103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.774683"], ["id", 1069]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KssG5AqusvYBRLYIG3N3Qe6HXYtAK1AnOcGdTlkAFecOoLvvJ8Q4W"], ["created_at", "2019-12-06 01:56:22.819704"], ["updated_at", "2019-12-06 01:56:22.819704"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.821880"], ["updated_at", "2019-12-06 01:56:22.821880"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 928], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1070], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1070], ["room_id", 928], ["created_at", "2019-12-06 01:56:22.825733"], ["updated_at", "2019-12-06 01:56:22.825733"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 928], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1070], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1070], ["room_id", 928], ["created_at", "2019-12-06 01:56:22.829694"], ["updated_at", "2019-12-06 01:56:22.829694"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.832093"], ["last_sign_in_at", "2019-12-06 01:56:22.832093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.832745"], ["id", 1070]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 928], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1070], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1070], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iAnvtR23Bp8gxeDYlvOR6OrIHynLosQOO5fIww/EkHBvNur2hKCXK"], ["created_at", "2019-12-06 01:56:22.846106"], ["updated_at", "2019-12-06 01:56:22.846106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.848358"], ["updated_at", "2019-12-06 01:56:22.848358"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 929], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1071], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1071], ["room_id", 929], ["created_at", "2019-12-06 01:56:22.852731"], ["updated_at", "2019-12-06 01:56:22.852731"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 929], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1071], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1071], ["room_id", 929], ["created_at", "2019-12-06 01:56:22.856603"], ["updated_at", "2019-12-06 01:56:22.856603"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.858959"], ["last_sign_in_at", "2019-12-06 01:56:22.858959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.859456"], ["id", 1071]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 929], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1071], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1071], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B/lVqdoKjB0LOKaYjqJL7eCqSbSKIphYVTHwCwNijTIpU7CYcER1O"], ["created_at", "2019-12-06 01:56:22.873933"], ["updated_at", "2019-12-06 01:56:22.873933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.876316"], ["updated_at", "2019-12-06 01:56:22.876316"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 930], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1072], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1072], ["room_id", 930], ["created_at", "2019-12-06 01:56:22.880142"], ["updated_at", "2019-12-06 01:56:22.880142"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 930], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1072], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1072], ["room_id", 930], ["created_at", "2019-12-06 01:56:22.884451"], ["updated_at", "2019-12-06 01:56:22.884451"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.886836"], ["last_sign_in_at", "2019-12-06 01:56:22.886836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.887403"], ["id", 1072]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$afwXme9b8BpWqcRH9U8D1..M5mPHpj/b6GjHKB6laBrdfvAHG74ey"], ["created_at", "2019-12-06 01:56:22.898819"], ["updated_at", "2019-12-06 01:56:22.898819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.901440"], ["updated_at", "2019-12-06 01:56:22.901440"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 931], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1073], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1073], ["room_id", 931], ["created_at", "2019-12-06 01:56:22.905384"], ["updated_at", "2019-12-06 01:56:22.905384"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 931], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1073], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1073], ["room_id", 931], ["created_at", "2019-12-06 01:56:22.909241"], ["updated_at", "2019-12-06 01:56:22.909241"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.911669"], ["last_sign_in_at", "2019-12-06 01:56:22.911669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.912171"], ["id", 1073]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EtxN37QQG6rsrGmsRemNWOO8za19m/f9H1h95.dYZfQPlM8UbNbL."], ["created_at", "2019-12-06 01:56:22.925901"], ["updated_at", "2019-12-06 01:56:22.925901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:56:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.928227"], ["last_sign_in_at", "2019-12-06 01:56:22.928227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.928821"], ["id", 1074]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 61ms (Views: 46.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bWzilxc/u5.iTtbjP3G.nuKHdxEHzylol9ZhuS143Pa.FnQY2NQMC"], ["created_at", "2019-12-06 01:56:23.002539"], ["updated_at", "2019-12-06 01:56:23.002539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.004752"], ["last_sign_in_at", "2019-12-06 01:56:23.004752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.005245"], ["id", 1075]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AkUfHXbE9zi3WN4LSS6jueSw/E34LmNb16OiguAIqeoK5YDPkhmBi"], ["created_at", "2019-12-06 01:56:23.014302"], ["updated_at", "2019-12-06 01:56:23.014302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.016843"], ["last_sign_in_at", "2019-12-06 01:56:23.016843"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.017460"], ["id", 1076]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f1lIm53W24zACQYbfHRx8OdLdcp2gcotIRVfAwPseguFfApJDpOvu"], ["created_at", "2019-12-06 01:56:23.044641"], ["updated_at", "2019-12-06 01:56:23.044641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.046705"], ["last_sign_in_at", "2019-12-06 01:56:23.046705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.047186"], ["id", 1077]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lFP.xzCVG5t08nprlyUeeu67DcwrJA774zgyD.bWqh8hIq.YKFxQ6"], ["created_at", "2019-12-06 01:56:23.067456"], ["updated_at", "2019-12-06 01:56:23.067456"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.069735"], ["updated_at", "2019-12-06 01:56:23.069735"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/932” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.071812"], ["last_sign_in_at", "2019-12-06 01:56:23.071812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.072317"], ["id", 1078]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"932"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 932], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$355dvmSMxmo/XKJ.EtE/WOXeE5K7gUUBkw1GFXq3t33LlF6qXoX.e"], ["created_at", "2019-12-06 01:56:23.099863"], ["updated_at", "2019-12-06 01:56:23.099863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.102379"], ["updated_at", "2019-12-06 01:56:23.102379"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/933” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.104620"], ["last_sign_in_at", "2019-12-06 01:56:23.104620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.105191"], ["id", 1079]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"933"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 933], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.114803"], ["updated_at", "2019-12-06 01:56:23.114803"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/934” for 127.0.0.1 at 2019-12-05 22:56:23 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"934"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p5FZ3eNiyQtI7mpAxhAgZ.O6kqvTdnZdAu8KuNZmMnyCLJqecZh06"], ["created_at", "2019-12-06 01:56:23.124927"], ["updated_at", "2019-12-06 01:56:23.124927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.127131"], ["updated_at", "2019-12-06 01:56:23.127131"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/935/edit” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.129159"], ["last_sign_in_at", "2019-12-06 01:56:23.129159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.129657"], ["id", 1080]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"935"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 935], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 4.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qUyaNL.7fNOQmCAnwLo8r.5TO4SG6kH3krYdyWhvsGlPYxR3TIZoy"], ["created_at", "2019-12-06 01:56:23.159571"], ["updated_at", "2019-12-06 01:56:23.159571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.161818"], ["updated_at", "2019-12-06 01:56:23.161818"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/936/edit” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.163892"], ["last_sign_in_at", "2019-12-06 01:56:23.163892"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.164484"], ["id", 1081]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"936"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 936], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.182999"], ["updated_at", "2019-12-06 01:56:23.182999"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/937” for 127.0.0.1 at 2019-12-05 22:56:23 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"937"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PWeljqQfbLEKw4kVTcD1pe5Hvm9fRQZKZKSs7YblVTbZc4vRlkJCm"], ["created_at", "2019-12-06 01:56:23.193322"], ["updated_at", "2019-12-06 01:56:23.193322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.196666"], ["last_sign_in_at", "2019-12-06 01:56:23.196666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.197149"], ["id", 1082]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.200731"], ["updated_at", "2019-12-06 01:56:23.200731"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eBpCVlfjP41nXgxWobnfFedru15bkKkq/juZhg396R34kkZXHAvOu"], ["created_at", "2019-12-06 01:56:23.209026"], ["updated_at", "2019-12-06 01:56:23.209026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.213034"], ["last_sign_in_at", "2019-12-06 01:56:23.213034"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.213666"], ["id", 1083]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.217208"], ["updated_at", "2019-12-06 01:56:23.217208"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QKJINKbmxl9V9klqOnfyPeYVFw4ltYisgPrLmkHnji4G8GCr3eM12"], ["created_at", "2019-12-06 01:56:23.225389"], ["updated_at", "2019-12-06 01:56:23.225389"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.227975"], ["last_sign_in_at", "2019-12-06 01:56:23.227975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.228463"], ["id", 1084]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$08F6lA7sr/LpXyt3FAL1POkp/4STqmux.mUTBbao0.rIdYRGSPAMG"], ["created_at", "2019-12-06 01:56:23.239081"], ["updated_at", "2019-12-06 01:56:23.239081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.241768"], ["last_sign_in_at", "2019-12-06 01:56:23.241768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.242271"], ["id", 1085]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$egQY4rReKUwcWTSXDOTloeuMfJUnBdv5se.VAquCNneDq.YPO1MWi"], ["created_at", "2019-12-06 01:56:23.253168"], ["updated_at", "2019-12-06 01:56:23.253168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.255669"], ["last_sign_in_at", "2019-12-06 01:56:23.255669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.256258"], ["id", 1086]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eDW1xkaV4Fqgfa92Z3a41uiKv4FGXuJo88a9Icd9eYoJlEJYreZZS"], ["created_at", "2019-12-06 01:56:23.266678"], ["updated_at", "2019-12-06 01:56:23.266678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.268952"], ["updated_at", "2019-12-06 01:56:23.268952"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/940” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.271194"], ["last_sign_in_at", "2019-12-06 01:56:23.271194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.271673"], ["id", 1087]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"940"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 940], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:56:23.275730"], ["id", 940]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/940 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ezAkFfJTsX5HR3UyNB9eF.sbATeFsXiQeyEsKkzw5AW3p8Bgp.hiu"], ["created_at", "2019-12-06 01:56:23.283936"], ["updated_at", "2019-12-06 01:56:23.283936"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.286253"], ["updated_at", "2019-12-06 01:56:23.286253"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/941” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.288842"], ["last_sign_in_at", "2019-12-06 01:56:23.288842"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.289417"], ["id", 1088]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"941"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 941], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:56:23.293224"], ["id", 941]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/941 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dWsv4YSiVmfHyIUWwBmdAu5xYIkHdkvowQsHO3zQd7CpCZ6RxDsQO"], ["created_at", "2019-12-06 01:56:23.301637"], ["updated_at", "2019-12-06 01:56:23.301637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.304055"], ["updated_at", "2019-12-06 01:56:23.304055"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/942” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.306343"], ["last_sign_in_at", "2019-12-06 01:56:23.306343"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.306919"], ["id", 1089]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"942"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 942], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rhOQiSNdBTV4VXOVyHNnY.5mhk/px6d6jJDAK6gyHBQY0EUGNsd/y"], ["created_at", "2019-12-06 01:56:23.321547"], ["updated_at", "2019-12-06 01:56:23.321547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.323832"], ["updated_at", "2019-12-06 01:56:23.323832"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/943” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.326100"], ["last_sign_in_at", "2019-12-06 01:56:23.326100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.326612"], ["id", 1090]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"943"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 943], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eZxGl3fpyJEx1q0AjDGmKuOsFsvePHM/o0Hl2nMJqCfqF61LhavXS"], ["created_at", "2019-12-06 01:56:23.341145"], ["updated_at", "2019-12-06 01:56:23.341145"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.343698"], ["last_sign_in_at", "2019-12-06 01:56:23.343698"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.344206"], ["id", 1091]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lg7oK/rbATIPc5GF9Z3WJ.7o/3JPDn/STu7P8DHtWk/VdGCF2qtLS"], ["created_at", "2019-12-06 01:56:23.354601"], ["updated_at", "2019-12-06 01:56:23.354601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.356976"], ["updated_at", "2019-12-06 01:56:23.356976"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/944” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.359385"], ["last_sign_in_at", "2019-12-06 01:56:23.359385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.360115"], ["id", 1092]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"944"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 944], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 944]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Wi/AE9yZUBP.9NRCsp/LN.BbmB9n8ptnfvdVo2WOTlpEoPE/b5wIy"], ["created_at", "2019-12-06 01:56:23.372005"], ["updated_at", "2019-12-06 01:56:23.372005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.374170"], ["updated_at", "2019-12-06 01:56:23.374170"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/945” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.375969"], ["last_sign_in_at", "2019-12-06 01:56:23.375969"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.376459"], ["id", 1093]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"945"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 945], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 945]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HjLpgY9.Oq932IonZ0pMOOAx8lw4vYnus67iKz51W2Xl9I5F08Vk6"], ["created_at", "2019-12-06 01:56:23.387730"], ["updated_at", "2019-12-06 01:56:23.387730"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.389886"], ["updated_at", "2019-12-06 01:56:23.389886"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/946” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.391747"], ["last_sign_in_at", "2019-12-06 01:56:23.391747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.392232"], ["id", 1094]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"946"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BpmXRWfcugj/lM7Mu48zl.7NA7yvxMBHs8DBx13jRg5gxSeRUplG6"], ["created_at", "2019-12-06 01:56:23.402136"], ["updated_at", "2019-12-06 01:56:23.402136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.404433"], ["updated_at", "2019-12-06 01:56:23.404433"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/947” for 127.0.0.1 at 2019-12-05 22:56:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.406305"], ["last_sign_in_at", "2019-12-06 01:56:23.406305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.406785"], ["id", 1095]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"947"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yylRK84GKxWaIXr9Z8LeDuGS/eOzavMDWJ5OTAVITg2MpdMmFLSwO"], ["created_at", "2019-12-06 01:57:59.643571"], ["updated_at", "2019-12-06 01:57:59.643571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.653226"], ["updated_at", "2019-12-06 01:57:59.653226"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"948"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 948], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '948')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 149ms (Views: 107.1ms | ActiveRecord: 2.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$mtp6viAnA3Fim951M7Pkdu9JrhgTQnu.fLk01t/IfV9zrcLsWErRa"], ["created_at", "2019-12-06 01:57:59.812751"], ["updated_at", "2019-12-06 01:57:59.812751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.814989"], ["updated_at", "2019-12-06 01:57:59.814989"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 949], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1097], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1097], ["room_id", 949], ["created_at", "2019-12-06 01:57:59.850674"], ["updated_at", "2019-12-06 01:57:59.850674"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"949"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 949], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '949')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$V9Q/jLOCyM9GXffJZxc5eOp7lOsXJn0mHeQABw/Tj831CvlZOfFaW"], ["created_at", "2019-12-06 01:57:59.892880"], ["updated_at", "2019-12-06 01:57:59.892880"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.895076"], ["updated_at", "2019-12-06 01:57:59.895076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 950], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1098], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1098], ["room_id", 950], ["created_at", "2019-12-06 01:57:59.898792"], ["updated_at", "2019-12-06 01:57:59.898792"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"950"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 950], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '950')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$p3CHa8rhg83e6734kOKrEeWWF/lDlWsLUa7o73NG0t0ZZDWc8vzwW"], ["created_at", "2019-12-06 01:57:59.916731"], ["updated_at", "2019-12-06 01:57:59.916731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.918935"], ["updated_at", "2019-12-06 01:57:59.918935"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 951], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1099], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1099], ["room_id", 951], ["created_at", "2019-12-06 01:57:59.922871"], ["updated_at", "2019-12-06 01:57:59.922871"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"951"}
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 951], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '951')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0OPWuph8JN1ETT/5a7z3mOQ4rv/rE52zyHeK40TWDHi2GjZq6gT8W"], ["created_at", "2019-12-06 01:57:59.939454"], ["updated_at", "2019-12-06 01:57:59.939454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.941612"], ["updated_at", "2019-12-06 01:57:59.941612"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 952], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1100], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1100], ["room_id", 952], ["created_at", "2019-12-06 01:57:59.945314"], ["updated_at", "2019-12-06 01:57:59.945314"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"952"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 952], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '952')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 104ms (Views: 73.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$esDz9bQt32wShbnmKhPbvuT4dythVdgZN5M57q6UeZYS0Ys4Yk3vS"], ["created_at", "2019-12-06 01:58:00.518598"], ["updated_at", "2019-12-06 01:58:00.518598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.520818"], ["updated_at", "2019-12-06 01:58:00.520818"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.536505"], ["last_sign_in_at", "2019-12-06 01:58:00.536505"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.537172"], ["id", 1101]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"953"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 953], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1101], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1101], ["room_id", 953], ["created_at", "2019-12-06 01:58:00.553580"], ["updated_at", "2019-12-06 01:58:00.553580"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 953], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$vLrEm0lODcvezLKyv/GXsOodaQ0YnrKeBQmrlUIIueC.G13ThVP/G"], ["created_at", "2019-12-06 01:58:00.562897"], ["updated_at", "2019-12-06 01:58:00.562897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.565027"], ["updated_at", "2019-12-06 01:58:00.565027"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.567641"], ["last_sign_in_at", "2019-12-06 01:58:00.567641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.568185"], ["id", 1102]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"954"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 954], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1102], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1102], ["room_id", 954], ["created_at", "2019-12-06 01:58:00.573445"], ["updated_at", "2019-12-06 01:58:00.573445"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$FaQdiGu0KjvOMXK6Z965ueb4s2e3dZqQsW7d1awzHcHgXcp4RA2bS"], ["created_at", "2019-12-06 01:58:00.582027"], ["updated_at", "2019-12-06 01:58:00.582027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.584306"], ["updated_at", "2019-12-06 01:58:00.584306"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.587367"], ["last_sign_in_at", "2019-12-06 01:58:00.587367"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.587979"], ["id", 1103]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"955"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 955], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$oWSMPb8M2X/0a9uaYUu2KugjFKYDGCN7mOyvqbZdD2WneViQFtgmq"], ["created_at", "2019-12-06 01:58:00.597811"], ["updated_at", "2019-12-06 01:58:00.597811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.600001"], ["updated_at", "2019-12-06 01:58:00.600001"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.602414"], ["last_sign_in_at", "2019-12-06 01:58:00.602414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.603080"], ["id", 1104]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"956"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$aPDBy2FJOeIDWU22pOWJ3uguE8F.BUlHCDr.Qx63/FyWFNBZ3QFb6"], ["created_at", "2019-12-06 01:58:00.613064"], ["updated_at", "2019-12-06 01:58:00.613064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.615203"], ["updated_at", "2019-12-06 01:58:00.615203"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 957], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1105], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1105], ["room_id", 957], ["created_at", "2019-12-06 01:58:00.619107"], ["updated_at", "2019-12-06 01:58:00.619107"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/957” for 127.0.0.1 at 2019-12-05 22:58:00 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.621847"], ["last_sign_in_at", "2019-12-06 01:58:00.621847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.622387"], ["id", 1105]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"957"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 957], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '957')[0m
Rendered appointments/show.html.erb within layouts/application (20.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 388ms (Views: 370.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yiqYagRBvcYAWUN.KOErguXHTFA9Z2J8w9KaXtMjDsD6kYcvUzjyK"], ["created_at", "2019-12-06 01:58:01.020937"], ["updated_at", "2019-12-06 01:58:01.020937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.023160"], ["updated_at", "2019-12-06 01:58:01.023160"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 958], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1106], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1106], ["room_id", 958], ["created_at", "2019-12-06 01:58:01.027040"], ["updated_at", "2019-12-06 01:58:01.027040"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 958], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1106], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1106], ["room_id", 958], ["created_at", "2019-12-06 01:58:01.030933"], ["updated_at", "2019-12-06 01:58:01.030933"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.033241"], ["last_sign_in_at", "2019-12-06 01:58:01.033241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.033748"], ["id", 1106]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1106]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SIJOp39wZhhN35fmskL2mOtgpS7wg6zq41FKk46MM9n7YDu3wnuQy"], ["created_at", "2019-12-06 01:58:01.077546"], ["updated_at", "2019-12-06 01:58:01.077546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.079775"], ["updated_at", "2019-12-06 01:58:01.079775"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 959], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1107], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1107], ["room_id", 959], ["created_at", "2019-12-06 01:58:01.083606"], ["updated_at", "2019-12-06 01:58:01.083606"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 959], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1107], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1107], ["room_id", 959], ["created_at", "2019-12-06 01:58:01.087916"], ["updated_at", "2019-12-06 01:58:01.087916"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.090237"], ["last_sign_in_at", "2019-12-06 01:58:01.090237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.090864"], ["id", 1107]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1107]] Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ohJS8xxZXOxvLw6FQpmaguYbOLhEXpI906u3VlIenXaAmMRpec9wC"], ["created_at", "2019-12-06 01:58:01.105001"], ["updated_at", "2019-12-06 01:58:01.105001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.107534"], ["updated_at", "2019-12-06 01:58:01.107534"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 960], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1108], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1108], ["room_id", 960], ["created_at", "2019-12-06 01:58:01.111769"], ["updated_at", "2019-12-06 01:58:01.111769"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/489” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.114161"], ["last_sign_in_at", "2019-12-06 01:58:01.114161"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.114794"], ["id", 1108]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"489"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 489], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 489]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$npc5WtotBfZeRv33t0pceuR5/nA741k7LqnAsSGvuPkWm0y3da/2W"], ["created_at", "2019-12-06 01:58:01.129970"], ["updated_at", "2019-12-06 01:58:01.129970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.132522"], ["last_sign_in_at", "2019-12-06 01:58:01.132522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.133152"], ["id", 1109]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 36ms (Views: 18.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G2zK4KRx4ZKBoME1wqorWOzWAyJzJXjqPAehSqzNQUf0RnsFi67cu"], ["created_at", "2019-12-06 01:58:01.178507"], ["updated_at", "2019-12-06 01:58:01.178507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.180674"], ["updated_at", "2019-12-06 01:58:01.180674"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 961], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1110], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1110], ["room_id", 961], ["created_at", "2019-12-06 01:58:01.184399"], ["updated_at", "2019-12-06 01:58:01.184399"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 961], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1110], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1110], ["room_id", 961], ["created_at", "2019-12-06 01:58:01.188419"], ["updated_at", "2019-12-06 01:58:01.188419"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.190829"], ["last_sign_in_at", "2019-12-06 01:58:01.190829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.191414"], ["id", 1110]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 961], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1110], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1110], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bPdjS5JbRVmOikpbEfIKtOIHwFfG1PgMvBuQ6TP57dD.c8P9/Shhe"], ["created_at", "2019-12-06 01:58:01.205113"], ["updated_at", "2019-12-06 01:58:01.205113"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.207267"], ["updated_at", "2019-12-06 01:58:01.207267"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 962], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1111], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1111], ["room_id", 962], ["created_at", "2019-12-06 01:58:01.210746"], ["updated_at", "2019-12-06 01:58:01.210746"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 962], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1111], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1111], ["room_id", 962], ["created_at", "2019-12-06 01:58:01.215335"], ["updated_at", "2019-12-06 01:58:01.215335"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.217775"], ["last_sign_in_at", "2019-12-06 01:58:01.217775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.218297"], ["id", 1111]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 962], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1111], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1111], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SW01rqWwRIu2XVMPtP1Ujuyijhzr6m0EsGJZTpYkAHbOOW44sPbFe"], ["created_at", "2019-12-06 01:58:01.234246"], ["updated_at", "2019-12-06 01:58:01.234246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.236791"], ["updated_at", "2019-12-06 01:58:01.236791"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 963], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1112], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1112], ["room_id", 963], ["created_at", "2019-12-06 01:58:01.240589"], ["updated_at", "2019-12-06 01:58:01.240589"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 963], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1112], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1112], ["room_id", 963], ["created_at", "2019-12-06 01:58:01.244579"], ["updated_at", "2019-12-06 01:58:01.244579"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.246878"], ["last_sign_in_at", "2019-12-06 01:58:01.246878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.247371"], ["id", 1112]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TrLLNv6LD3PLGQ03Bq4PdeakfaQlI4nL/fWChigzy5k.iSkcDOkMS"], ["created_at", "2019-12-06 01:58:01.258718"], ["updated_at", "2019-12-06 01:58:01.258718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.261060"], ["updated_at", "2019-12-06 01:58:01.261060"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 964], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1113], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1113], ["room_id", 964], ["created_at", "2019-12-06 01:58:01.264690"], ["updated_at", "2019-12-06 01:58:01.264690"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 964], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1113], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1113], ["room_id", 964], ["created_at", "2019-12-06 01:58:01.268388"], ["updated_at", "2019-12-06 01:58:01.268388"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.271152"], ["last_sign_in_at", "2019-12-06 01:58:01.271152"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.271693"], ["id", 1113]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PGgWGD8i1N.02T9EpWV/6ePQDwVqXznEowWzx0UwW9N.00zENYPJa"], ["created_at", "2019-12-06 01:58:01.284768"], ["updated_at", "2019-12-06 01:58:01.284768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.287336"], ["last_sign_in_at", "2019-12-06 01:58:01.287336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.287868"], ["id", 1114]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 63ms (Views: 46.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b56hJIPR2F3RZW3ow4GtNOTAXhGVuYOSafNIVVRcZhGgSr1TirPKW"], ["created_at", "2019-12-06 01:58:01.362275"], ["updated_at", "2019-12-06 01:58:01.362275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.364495"], ["last_sign_in_at", "2019-12-06 01:58:01.364495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.364975"], ["id", 1115]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bhWa8ID.xLaTm6DrNfGkLupXRUcXC/mmL/o7L5rhe4rgEpfUALl/a"], ["created_at", "2019-12-06 01:58:01.375139"], ["updated_at", "2019-12-06 01:58:01.375139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.377352"], ["last_sign_in_at", "2019-12-06 01:58:01.377352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.377840"], ["id", 1116]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lvxWlX1wLFnrZhGPg8v3bu9zmReMia9gai83JmR64pHn4ydysmTFy"], ["created_at", "2019-12-06 01:58:01.405512"], ["updated_at", "2019-12-06 01:58:01.405512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.407901"], ["last_sign_in_at", "2019-12-06 01:58:01.407901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.408420"], ["id", 1117]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PDNERA8vgd8hHEggcDJMJeKmShj07l6m3G4PzRugdLXN1SzYZU4vm"], ["created_at", "2019-12-06 01:58:01.428879"], ["updated_at", "2019-12-06 01:58:01.428879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.431362"], ["updated_at", "2019-12-06 01:58:01.431362"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/965” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.433964"], ["last_sign_in_at", "2019-12-06 01:58:01.433964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.434501"], ["id", 1118]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"965"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 965], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$X/23HoMCcssAjD1/6.djs.o6n1thmdHAIOiooaa0sF.yXdDw3yj2W"], ["created_at", "2019-12-06 01:58:01.460979"], ["updated_at", "2019-12-06 01:58:01.460979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.463202"], ["updated_at", "2019-12-06 01:58:01.463202"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/966” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.465229"], ["last_sign_in_at", "2019-12-06 01:58:01.465229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.465721"], ["id", 1119]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"966"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 966], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.474559"], ["updated_at", "2019-12-06 01:58:01.474559"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/967” for 127.0.0.1 at 2019-12-05 22:58:01 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"967"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cyuU96wrw/3h2WfvUl.myerj7vA1bSeoyoJ1qPgsMoBCJJm7.py8O"], ["created_at", "2019-12-06 01:58:01.483785"], ["updated_at", "2019-12-06 01:58:01.483785"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.485822"], ["updated_at", "2019-12-06 01:58:01.485822"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/968/edit” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.487990"], ["last_sign_in_at", "2019-12-06 01:58:01.487990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.488455"], ["id", 1120]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"968"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 968], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LG9QWu9VIzMeXs.fqfvz1.p9wdEsNdqKuetqcVBCgQJFgXtNFO6Aa"], ["created_at", "2019-12-06 01:58:01.515204"], ["updated_at", "2019-12-06 01:58:01.515204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.517197"], ["updated_at", "2019-12-06 01:58:01.517197"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/969/edit” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.519513"], ["last_sign_in_at", "2019-12-06 01:58:01.519513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.527539"], ["id", 1121]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"969"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 969], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.4ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.537401"], ["updated_at", "2019-12-06 01:58:01.537401"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/970” for 127.0.0.1 at 2019-12-05 22:58:01 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"970"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VfumtCek6TOwnjIOukNiP.ONYIi5vcBS/UPd0y6AyE75LW1vOSQTC"], ["created_at", "2019-12-06 01:58:01.547772"], ["updated_at", "2019-12-06 01:58:01.547772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.550213"], ["last_sign_in_at", "2019-12-06 01:58:01.550213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.550703"], ["id", 1122]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.553927"], ["updated_at", "2019-12-06 01:58:01.553927"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lC1YxhUGFLfVozm3Y7JZOum7KYTAos4sbrac1eWfjmWj30BgdsT4O"], ["created_at", "2019-12-06 01:58:01.561826"], ["updated_at", "2019-12-06 01:58:01.561826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.564198"], ["last_sign_in_at", "2019-12-06 01:58:01.564198"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.564664"], ["id", 1123]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.567484"], ["updated_at", "2019-12-06 01:58:01.567484"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bMeqlEQABgzS3kZ5P5FPHOVMjZI0e2Ii4F6qcB//SYtLVkcGenryK"], ["created_at", "2019-12-06 01:58:01.575469"], ["updated_at", "2019-12-06 01:58:01.575469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.577985"], ["last_sign_in_at", "2019-12-06 01:58:01.577985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.578493"], ["id", 1124]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0LmhbdupU4lQJmywQuVb5OJXWFS1fmYbLElstax3gjJn4GQee8SXC"], ["created_at", "2019-12-06 01:58:01.589400"], ["updated_at", "2019-12-06 01:58:01.589400"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.591925"], ["last_sign_in_at", "2019-12-06 01:58:01.591925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.592405"], ["id", 1125]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J8UM1RcrgUkrVMm0kNiggeF/9uEgfMOwO5W2FtddGyav8/qPjG0My"], ["created_at", "2019-12-06 01:58:01.603576"], ["updated_at", "2019-12-06 01:58:01.603576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.606451"], ["last_sign_in_at", "2019-12-06 01:58:01.606451"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.606940"], ["id", 1126]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fUB2hIGCtnvpcy1qtTj/GuDL16Gw2Cz3Mc0VTZ5U2GJ7gW9QHW16q"], ["created_at", "2019-12-06 01:58:01.616828"], ["updated_at", "2019-12-06 01:58:01.616828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.619340"], ["updated_at", "2019-12-06 01:58:01.619340"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/973” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.621941"], ["last_sign_in_at", "2019-12-06 01:58:01.621941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.622452"], ["id", 1127]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"973"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 973], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:58:01.626185"], ["id", 973]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/973 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$702H/M0w5Vm9x87TuBLPQuhDWSuSOyBB8VqYBbIQjeruOCt8AwLJi"], ["created_at", "2019-12-06 01:58:01.634447"], ["updated_at", "2019-12-06 01:58:01.634447"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.637652"], ["updated_at", "2019-12-06 01:58:01.637652"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/974” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.639974"], ["last_sign_in_at", "2019-12-06 01:58:01.639974"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.640466"], ["id", 1128]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"974"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 974], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:58:01.644133"], ["id", 974]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/974 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dY3okPZRVcsjvtOgrpCPXeckBuOKtdrY472zIOWesj3uRVuI4lxSm"], ["created_at", "2019-12-06 01:58:01.653422"], ["updated_at", "2019-12-06 01:58:01.653422"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.655702"], ["updated_at", "2019-12-06 01:58:01.655702"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/975” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.657906"], ["last_sign_in_at", "2019-12-06 01:58:01.657906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.658402"], ["id", 1129]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"975"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 975], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TLHtPQQvpXQ7K0dfLF9pKuHP70b9bhAl.jTduZ66nSV5DlX86wQxq"], ["created_at", "2019-12-06 01:58:01.673147"], ["updated_at", "2019-12-06 01:58:01.673147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.675324"], ["updated_at", "2019-12-06 01:58:01.675324"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/976” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.677519"], ["last_sign_in_at", "2019-12-06 01:58:01.677519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.678007"], ["id", 1130]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"976"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 976], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I/2glJUUqn8kBv.WwSrsVeHaCT9rnNZfW4TqOQxD5jiqYXBDhipzu"], ["created_at", "2019-12-06 01:58:01.692365"], ["updated_at", "2019-12-06 01:58:01.692365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.694934"], ["last_sign_in_at", "2019-12-06 01:58:01.694934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.695419"], ["id", 1131]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AiBssQoAXS7avUGoZRvTvOpKAo/BEqI3549Ed9UQCnCAeOxC5gTSe"], ["created_at", "2019-12-06 01:58:01.705570"], ["updated_at", "2019-12-06 01:58:01.705570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.707725"], ["updated_at", "2019-12-06 01:58:01.707725"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/977” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.709568"], ["last_sign_in_at", "2019-12-06 01:58:01.709568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.710049"], ["id", 1132]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"977"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 977], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 977]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1y8B7XipS2V4gs9fL2E.B.P/MA3bXbzSR9DW/slEQCefGFojCRQKC"], ["created_at", "2019-12-06 01:58:01.721180"], ["updated_at", "2019-12-06 01:58:01.721180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.723339"], ["updated_at", "2019-12-06 01:58:01.723339"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/978” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.725150"], ["last_sign_in_at", "2019-12-06 01:58:01.725150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.725617"], ["id", 1133]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"978"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 978], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 978]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A9Cj70/0gzRVreO/7lDTyuraK9S6U/0AaOYYQWxbaDcW/kKhFbN5G"], ["created_at", "2019-12-06 01:58:01.736736"], ["updated_at", "2019-12-06 01:58:01.736736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.738941"], ["updated_at", "2019-12-06 01:58:01.738941"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/979” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.740756"], ["last_sign_in_at", "2019-12-06 01:58:01.740756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.741240"], ["id", 1134]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"979"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.QlJb3BcLkGnqin84CGO5eRHYZRvsGANogNuKzu7hH8MP161Jnsi6"], ["created_at", "2019-12-06 01:58:01.750211"], ["updated_at", "2019-12-06 01:58:01.750211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.752478"], ["updated_at", "2019-12-06 01:58:01.752478"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/980” for 127.0.0.1 at 2019-12-05 22:58:01 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.754640"], ["last_sign_in_at", "2019-12-06 01:58:01.754640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.755131"], ["id", 1135]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"980"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (7.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (3.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$FMfnap7j.yaMp3fov.c26.NTA5vcbPpM4JZpwEVmK5NbBrSbF1RGy"], ["created_at", "2019-12-06 02:00:15.932014"], ["updated_at", "2019-12-06 02:00:15.932014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (3.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:15.943470"], ["updated_at", "2019-12-06 02:00:15.943470"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"981"}
[1m[36mRoom Load (2.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 981], ["LIMIT", 1]]
[1m[36mAppointment Load (8.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '981')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 161ms (Views: 107.6ms | ActiveRecord: 12.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$QuNi0ESzsyzrD2zBswLzlugSSJJD3sgUgqHctMDFz/bgbIEbMiTau"], ["created_at", "2019-12-06 02:00:16.117547"], ["updated_at", "2019-12-06 02:00:16.117547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.119873"], ["updated_at", "2019-12-06 02:00:16.119873"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 982], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1137], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1137], ["room_id", 982], ["created_at", "2019-12-06 02:00:16.155739"], ["updated_at", "2019-12-06 02:00:16.155739"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"982"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 982], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '982')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yVwS3M6pLvr.CIbHEY6pouEYPORRwnV4Tse4zKZXjFoJVS6rXhNMS"], ["created_at", "2019-12-06 02:00:16.199551"], ["updated_at", "2019-12-06 02:00:16.199551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.201811"], ["updated_at", "2019-12-06 02:00:16.201811"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 983], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1138], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1138], ["room_id", 983], ["created_at", "2019-12-06 02:00:16.205678"], ["updated_at", "2019-12-06 02:00:16.205678"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"983"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 983], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '983')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$cqGp.QUdB/GYh5s1aTAxW.hCO3Fgi3NnuKb.GKbzuJ9/uL9XQ10Zi"], ["created_at", "2019-12-06 02:00:16.223091"], ["updated_at", "2019-12-06 02:00:16.223091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.225685"], ["updated_at", "2019-12-06 02:00:16.225685"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 984], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1139], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1139], ["room_id", 984], ["created_at", "2019-12-06 02:00:16.229688"], ["updated_at", "2019-12-06 02:00:16.229688"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"984"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 984], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '984')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KsaxMOip7BAmDk2tVnjy.OuN9qdVmFClP2PYSoZ7aYLJc0yVzR.jS"], ["created_at", "2019-12-06 02:00:16.247524"], ["updated_at", "2019-12-06 02:00:16.247524"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.249770"], ["updated_at", "2019-12-06 02:00:16.249770"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 985], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1140], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1140], ["room_id", 985], ["created_at", "2019-12-06 02:00:16.254390"], ["updated_at", "2019-12-06 02:00:16.254390"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"985"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 985], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '985')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 110ms (Views: 77.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$U6s1vNRDp9BxSg8EDD1Yx.DBaStzkd7JkvJjx1Zku6qZXOkXnCboi"], ["created_at", "2019-12-06 02:00:16.829809"], ["updated_at", "2019-12-06 02:00:16.829809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.832079"], ["updated_at", "2019-12-06 02:00:16.832079"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.851941"], ["last_sign_in_at", "2019-12-06 02:00:16.851941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.852666"], ["id", 1141]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"986"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 986], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1141], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1141], ["room_id", 986], ["created_at", "2019-12-06 02:00:16.869693"], ["updated_at", "2019-12-06 02:00:16.869693"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 986], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y3Wu9hVSMp/0UKH0TvQubumYdV3oFV5zAcA8Td37hIsp4cKbdcdG2"], ["created_at", "2019-12-06 02:00:16.879047"], ["updated_at", "2019-12-06 02:00:16.879047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.881209"], ["updated_at", "2019-12-06 02:00:16.881209"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.883581"], ["last_sign_in_at", "2019-12-06 02:00:16.883581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.884128"], ["id", 1142]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"987"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 987], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1142], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1142], ["room_id", 987], ["created_at", "2019-12-06 02:00:16.889055"], ["updated_at", "2019-12-06 02:00:16.889055"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$WKP5YgSIPxVwCmpWKeiBqOoI95msigD75hfY01OGcjAumzN3VjGYi"], ["created_at", "2019-12-06 02:00:16.897832"], ["updated_at", "2019-12-06 02:00:16.897832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.900046"], ["updated_at", "2019-12-06 02:00:16.900046"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.902484"], ["last_sign_in_at", "2019-12-06 02:00:16.902484"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.903005"], ["id", 1143]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"988"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 988], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3snQqnnBuFzry4As0tFG6Oj71ISD2L6SO2/Xjm8WT.SHkuUx6bGd6"], ["created_at", "2019-12-06 02:00:16.912634"], ["updated_at", "2019-12-06 02:00:16.912634"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.914988"], ["updated_at", "2019-12-06 02:00:16.914988"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.917488"], ["last_sign_in_at", "2019-12-06 02:00:16.917488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.917998"], ["id", 1144]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"989"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KcVD0GJeET3G4m61eX.5T.oAHzOnvpoQLYPTfVQ9pvj0bDSEcI4xK"], ["created_at", "2019-12-06 02:00:16.928499"], ["updated_at", "2019-12-06 02:00:16.928499"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.930743"], ["updated_at", "2019-12-06 02:00:16.930743"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 990], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1145], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1145], ["room_id", 990], ["created_at", "2019-12-06 02:00:16.934633"], ["updated_at", "2019-12-06 02:00:16.934633"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/990” for 127.0.0.1 at 2019-12-05 23:00:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.937175"], ["last_sign_in_at", "2019-12-06 02:00:16.937175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.937741"], ["id", 1145]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"990"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 990], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '990')[0m
Rendered appointments/show.html.erb within layouts/application (20.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 390ms (Views: 372.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$T7F8mCxJOEX75FU.fjDBeeIQ/eRRn9/eUmRozXAIH5mtm1U3UnMHy"], ["created_at", "2019-12-06 02:00:17.337092"], ["updated_at", "2019-12-06 02:00:17.337092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.339381"], ["updated_at", "2019-12-06 02:00:17.339381"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 991], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1146], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1146], ["room_id", 991], ["created_at", "2019-12-06 02:00:17.343927"], ["updated_at", "2019-12-06 02:00:17.343927"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 991], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1146], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1146], ["room_id", 991], ["created_at", "2019-12-06 02:00:17.348063"], ["updated_at", "2019-12-06 02:00:17.348063"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.350593"], ["last_sign_in_at", "2019-12-06 02:00:17.350593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.351136"], ["id", 1146]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1146]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 37ms (Views: 4.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$XpipgOqtACiAL3BTU8EZa.lMo9T7Lf6F/EhLiZ7Up6ZXTUlLxZKEW"], ["created_at", "2019-12-06 02:00:17.397111"], ["updated_at", "2019-12-06 02:00:17.397111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.399501"], ["updated_at", "2019-12-06 02:00:17.399501"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 992], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1147], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1147], ["room_id", 992], ["created_at", "2019-12-06 02:00:17.403252"], ["updated_at", "2019-12-06 02:00:17.403252"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 992], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1147], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1147], ["room_id", 992], ["created_at", "2019-12-06 02:00:17.407366"], ["updated_at", "2019-12-06 02:00:17.407366"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.409759"], ["last_sign_in_at", "2019-12-06 02:00:17.409759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.410253"], ["id", 1147]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1147]] Rendered appointments/my_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yZ0a7NrGEA5lzslj/iAd7e4U7PG1Ia2xedxkfJKM8a6e.OuzF/A3y"], ["created_at", "2019-12-06 02:00:17.424425"], ["updated_at", "2019-12-06 02:00:17.424425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.426931"], ["updated_at", "2019-12-06 02:00:17.426931"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 993], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1148], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1148], ["room_id", 993], ["created_at", "2019-12-06 02:00:17.431298"], ["updated_at", "2019-12-06 02:00:17.431298"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/509” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.434063"], ["last_sign_in_at", "2019-12-06 02:00:17.434063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.434705"], ["id", 1148]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"509"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 509], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 509]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ENLc0mKoqcekQirBVi8ES.PPwizswPUOchb8Y/s16i/e7HPFR48W6"], ["created_at", "2019-12-06 02:00:17.450606"], ["updated_at", "2019-12-06 02:00:17.450606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.453102"], ["last_sign_in_at", "2019-12-06 02:00:17.453102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.453615"], ["id", 1149]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.4ms)
Completed 200 OK in 37ms (Views: 20.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LCD74zUyYvR1FSuib9xWY.sy3moxpQBNwdNUvMgls0GwvqwhZ1qD2"], ["created_at", "2019-12-06 02:00:17.500882"], ["updated_at", "2019-12-06 02:00:17.500882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.502892"], ["updated_at", "2019-12-06 02:00:17.502892"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 994], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1150], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1150], ["room_id", 994], ["created_at", "2019-12-06 02:00:17.506307"], ["updated_at", "2019-12-06 02:00:17.506307"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 994], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1150], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1150], ["room_id", 994], ["created_at", "2019-12-06 02:00:17.510400"], ["updated_at", "2019-12-06 02:00:17.510400"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.512519"], ["last_sign_in_at", "2019-12-06 02:00:17.512519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.512980"], ["id", 1150]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 994], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1150], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1150], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BvsohDgIR814SaSji/PLU.wKXrqw4KInMrLeN4IPURv0rXvLhGGue"], ["created_at", "2019-12-06 02:00:17.526064"], ["updated_at", "2019-12-06 02:00:17.526064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.528444"], ["updated_at", "2019-12-06 02:00:17.528444"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 995], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1151], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1151], ["room_id", 995], ["created_at", "2019-12-06 02:00:17.531826"], ["updated_at", "2019-12-06 02:00:17.531826"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 995], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1151], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1151], ["room_id", 995], ["created_at", "2019-12-06 02:00:17.535192"], ["updated_at", "2019-12-06 02:00:17.535192"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.537303"], ["last_sign_in_at", "2019-12-06 02:00:17.537303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.537769"], ["id", 1151]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 995], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1151], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1151], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AiUHi1KW.vCriXR18waChuBW7kFKtvyqNpaDzvL2sU81F5bqbYkUS"], ["created_at", "2019-12-06 02:00:17.552045"], ["updated_at", "2019-12-06 02:00:17.552045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.554333"], ["updated_at", "2019-12-06 02:00:17.554333"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 996], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1152], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1152], ["room_id", 996], ["created_at", "2019-12-06 02:00:17.558389"], ["updated_at", "2019-12-06 02:00:17.558389"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 996], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1152], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1152], ["room_id", 996], ["created_at", "2019-12-06 02:00:17.561929"], ["updated_at", "2019-12-06 02:00:17.561929"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.563979"], ["last_sign_in_at", "2019-12-06 02:00:17.563979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.564432"], ["id", 1152]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tkvT/rYO96tGymYXcCNQgOxIXVw.JGa0BinIbk.ed7eTeSLhMZe3."], ["created_at", "2019-12-06 02:00:17.575915"], ["updated_at", "2019-12-06 02:00:17.575915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.578235"], ["updated_at", "2019-12-06 02:00:17.578235"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 997], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1153], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1153], ["room_id", 997], ["created_at", "2019-12-06 02:00:17.581973"], ["updated_at", "2019-12-06 02:00:17.581973"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 997], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1153], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1153], ["room_id", 997], ["created_at", "2019-12-06 02:00:17.586104"], ["updated_at", "2019-12-06 02:00:17.586104"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.588677"], ["last_sign_in_at", "2019-12-06 02:00:17.588677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.589202"], ["id", 1153]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$unrmWzI9Bzp2mh7K4H7ZheSdWYkFv9s1x2CfKnswRzRiXYVEOP9A6"], ["created_at", "2019-12-06 02:00:17.603690"], ["updated_at", "2019-12-06 02:00:17.603690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.606160"], ["last_sign_in_at", "2019-12-06 02:00:17.606160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.606846"], ["id", 1154]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 61ms (Views: 45.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vH2yJperBft54u4l6t9J8.AZ.0GZZup1siowm7Cv56C3Vl58xGKJC"], ["created_at", "2019-12-06 02:00:17.679734"], ["updated_at", "2019-12-06 02:00:17.679734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.682024"], ["last_sign_in_at", "2019-12-06 02:00:17.682024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.682512"], ["id", 1155]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hZWGPXrOZcXdfbSFxDzAxOGGrB/ekdm1X7oGyJP1Y1IYuUdZWJoD."], ["created_at", "2019-12-06 02:00:17.692161"], ["updated_at", "2019-12-06 02:00:17.692161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.694474"], ["last_sign_in_at", "2019-12-06 02:00:17.694474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.694958"], ["id", 1156]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7mykvhNJpMsxnUUuim6sEOaxCQQTuG7QcRFleyMI3eUCMfODW3kTG"], ["created_at", "2019-12-06 02:00:17.723126"], ["updated_at", "2019-12-06 02:00:17.723126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.725943"], ["last_sign_in_at", "2019-12-06 02:00:17.725943"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.726576"], ["id", 1157]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P695AI/Mo5WsLQ3RFcH4JOe5.SzOd64SQSzANiTSAw8EkzBpH51kq"], ["created_at", "2019-12-06 02:00:17.747285"], ["updated_at", "2019-12-06 02:00:17.747285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.749265"], ["updated_at", "2019-12-06 02:00:17.749265"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/998” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.751153"], ["last_sign_in_at", "2019-12-06 02:00:17.751153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.751620"], ["id", 1158]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"998"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 998], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bvW2.8hXZFEz3LTzAtR3Bu2MEbq.G25cVvbvrQ/lZrHOqN.kfuUye"], ["created_at", "2019-12-06 02:00:17.777305"], ["updated_at", "2019-12-06 02:00:17.777305"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.779580"], ["updated_at", "2019-12-06 02:00:17.779580"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/999” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.781690"], ["last_sign_in_at", "2019-12-06 02:00:17.781690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.782210"], ["id", 1159]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"999"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 999], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.791873"], ["updated_at", "2019-12-06 02:00:17.791873"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1000” for 127.0.0.1 at 2019-12-05 23:00:17 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1000"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RXuEbHLn9I3CoSD8Ck/x1O7xy7cfDqkEJxoq4Mc0eRjL9DRyAwN1W"], ["created_at", "2019-12-06 02:00:17.801128"], ["updated_at", "2019-12-06 02:00:17.801128"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.803119"], ["updated_at", "2019-12-06 02:00:17.803119"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1001/edit” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.805093"], ["last_sign_in_at", "2019-12-06 02:00:17.805093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.805649"], ["id", 1160]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1001"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1001], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m11qNfNBRK7y11AZkRxIg.kQ.VuUF1WKErbHP6KjYPj/JUwSj.DE."], ["created_at", "2019-12-06 02:00:17.833316"], ["updated_at", "2019-12-06 02:00:17.833316"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.835240"], ["updated_at", "2019-12-06 02:00:17.835240"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1002/edit” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.837164"], ["last_sign_in_at", "2019-12-06 02:00:17.837164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.837620"], ["id", 1161]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1002"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1002], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.855178"], ["updated_at", "2019-12-06 02:00:17.855178"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1003” for 127.0.0.1 at 2019-12-05 23:00:17 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1003"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UzTrFkE8abT4yAMb9xGeW.ZRuaIBtxQOo5fbMvn/aG9DR7Kj.PyWG"], ["created_at", "2019-12-06 02:00:17.865786"], ["updated_at", "2019-12-06 02:00:17.865786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.868325"], ["last_sign_in_at", "2019-12-06 02:00:17.868325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.868814"], ["id", 1162]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.871725"], ["updated_at", "2019-12-06 02:00:17.871725"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5I6e.yTAk9VfZxhxN4.9POnNzhdQtb9P90.RZvb0du5uAF19aL6gq"], ["created_at", "2019-12-06 02:00:17.879271"], ["updated_at", "2019-12-06 02:00:17.879271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.881583"], ["last_sign_in_at", "2019-12-06 02:00:17.881583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.882043"], ["id", 1163]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.885039"], ["updated_at", "2019-12-06 02:00:17.885039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XaMb6zIcx0Ra/pookTAWjuxNA06NCuDACbGoXkNBIUpABDYCp6aWa"], ["created_at", "2019-12-06 02:00:17.892827"], ["updated_at", "2019-12-06 02:00:17.892827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.895367"], ["last_sign_in_at", "2019-12-06 02:00:17.895367"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.895833"], ["id", 1164]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ihWUkoFE6laisY9mr.ubDe6FnZp/1ybg17yW.YKTT/zKl2P4DIhku"], ["created_at", "2019-12-06 02:00:17.905562"], ["updated_at", "2019-12-06 02:00:17.905562"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.908276"], ["last_sign_in_at", "2019-12-06 02:00:17.908276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.908760"], ["id", 1165]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NRTlDGoKJ8CokaervFaQBuxIDh/jNcmsM2S4E9M02LTXa6Eospt7i"], ["created_at", "2019-12-06 02:00:17.919046"], ["updated_at", "2019-12-06 02:00:17.919046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.921488"], ["last_sign_in_at", "2019-12-06 02:00:17.921488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.921978"], ["id", 1166]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CyFO1sYY2lvG88f.2v/WBOrIEHfI47D2Y3rUFmoNs65nbbokHdKtG"], ["created_at", "2019-12-06 02:00:17.932877"], ["updated_at", "2019-12-06 02:00:17.932877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.935039"], ["updated_at", "2019-12-06 02:00:17.935039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1006” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.937180"], ["last_sign_in_at", "2019-12-06 02:00:17.937180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.937691"], ["id", 1167]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1006"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1006], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:00:17.941796"], ["id", 1006]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1006 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qhEBsLU61mCDEhkqcvZj8uooAsMJK6V4DlkFSbUZQG.bGx4g1k1I6"], ["created_at", "2019-12-06 02:00:17.949894"], ["updated_at", "2019-12-06 02:00:17.949894"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.952082"], ["updated_at", "2019-12-06 02:00:17.952082"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1007” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.954283"], ["last_sign_in_at", "2019-12-06 02:00:17.954283"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.954776"], ["id", 1168]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1007"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1007], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:00:17.958812"], ["id", 1007]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1007 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aOgbBG1Sq9YmLWbpD6A4aeeccvI9kVEX0mzfcSC7YbQPI7qAyWSfm"], ["created_at", "2019-12-06 02:00:17.967589"], ["updated_at", "2019-12-06 02:00:17.967589"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.969758"], ["updated_at", "2019-12-06 02:00:17.969758"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1008” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.971960"], ["last_sign_in_at", "2019-12-06 02:00:17.971960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.972450"], ["id", 1169]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1008"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1008], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GiqhLubNPj//6O0z0CB1XuOaUWQpb1jh1R3Mj9o.wsy.1e1sFAKZe"], ["created_at", "2019-12-06 02:00:17.986584"], ["updated_at", "2019-12-06 02:00:17.986584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.988755"], ["updated_at", "2019-12-06 02:00:17.988755"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1009” for 127.0.0.1 at 2019-12-05 23:00:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.991323"], ["last_sign_in_at", "2019-12-06 02:00:17.991323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.991879"], ["id", 1170]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1009"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1009], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xcxWxVzvOjpyi30E3RzDF.hZYNkk7XWzwJTvGf6qxwCCgahyWPBU2"], ["created_at", "2019-12-06 02:00:18.005663"], ["updated_at", "2019-12-06 02:00:18.005663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.009002"], ["last_sign_in_at", "2019-12-06 02:00:18.009002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.009541"], ["id", 1171]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f5gxFMRAo0vSJVKM7JArcusAYGF3W6AvRZzYfUTurlTju9pxPF9zO"], ["created_at", "2019-12-06 02:00:18.019091"], ["updated_at", "2019-12-06 02:00:18.019091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.021215"], ["updated_at", "2019-12-06 02:00:18.021215"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1010” for 127.0.0.1 at 2019-12-05 23:00:18 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.023136"], ["last_sign_in_at", "2019-12-06 02:00:18.023136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.023949"], ["id", 1172]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1010"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1010], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1010]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jcC8W.OGbHXvvB4IsOskXeXX619Rc9zKTiT4YBHjdFvvU4POm7zu."], ["created_at", "2019-12-06 02:00:18.034795"], ["updated_at", "2019-12-06 02:00:18.034795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.036951"], ["updated_at", "2019-12-06 02:00:18.036951"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1011” for 127.0.0.1 at 2019-12-05 23:00:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.038784"], ["last_sign_in_at", "2019-12-06 02:00:18.038784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.039337"], ["id", 1173]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1011"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1011], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1011]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KuyO3mswdwzsjpuPq2nUg..lhNxhm5LXTs8rVwiPx8eTJuKOuBTua"], ["created_at", "2019-12-06 02:00:18.051288"], ["updated_at", "2019-12-06 02:00:18.051288"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.053434"], ["updated_at", "2019-12-06 02:00:18.053434"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1012” for 127.0.0.1 at 2019-12-05 23:00:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.055501"], ["last_sign_in_at", "2019-12-06 02:00:18.055501"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.056039"], ["id", 1174]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1012"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EJDT52Ol3Its6H2NFMiQ/Ou2JeKwvRZhfMRdhjS9ADVJ3rSkNLuJu"], ["created_at", "2019-12-06 02:00:18.065207"], ["updated_at", "2019-12-06 02:00:18.065207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.067336"], ["updated_at", "2019-12-06 02:00:18.067336"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1013” for 127.0.0.1 at 2019-12-05 23:00:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.069156"], ["last_sign_in_at", "2019-12-06 02:00:18.069156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.069638"], ["id", 1175]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1013"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$OCyBIILm4vV0amyeVmUt3.Yf3MC8bXID1.eJMaT1Lc0Th9GHSb1xy"], ["created_at", "2019-12-06 02:06:09.894849"], ["updated_at", "2019-12-06 02:06:09.894849"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:09.903774"], ["updated_at", "2019-12-06 02:06:09.903774"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1014"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1014], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1014')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 152ms (Views: 107.8ms | ActiveRecord: 2.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$6tNG3BvRC9Mzs5ki59UZF.PWFFwOX6IpL4sAM9tIDe87eh5p337Dm"], ["created_at", "2019-12-06 02:06:10.066983"], ["updated_at", "2019-12-06 02:06:10.066983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.070198"], ["updated_at", "2019-12-06 02:06:10.070198"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1015], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1177], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1177], ["room_id", 1015], ["created_at", "2019-12-06 02:06:10.107871"], ["updated_at", "2019-12-06 02:06:10.107871"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1015"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1015], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1015')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2FbJ.MueI6xqiWVBpvXFTep1BGj.DOHnV79Tow/Mot7RMrdj6aYdO"], ["created_at", "2019-12-06 02:06:10.180925"], ["updated_at", "2019-12-06 02:06:10.180925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.183239"], ["updated_at", "2019-12-06 02:06:10.183239"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1016], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1178], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1178], ["room_id", 1016], ["created_at", "2019-12-06 02:06:10.188066"], ["updated_at", "2019-12-06 02:06:10.188066"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1016"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1016], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1016')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$f4svYzzv5U1FeQGFOVb7gOLsnO88FMPerCagYx8BfGtia10IP4L62"], ["created_at", "2019-12-06 02:06:10.205796"], ["updated_at", "2019-12-06 02:06:10.205796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.208024"], ["updated_at", "2019-12-06 02:06:10.208024"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1017], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1179], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1179], ["room_id", 1017], ["created_at", "2019-12-06 02:06:10.212200"], ["updated_at", "2019-12-06 02:06:10.212200"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1017"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1017], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1017')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hR38yqJO6VQZaqgvZTgTQePdIM7tk2js7Ht.VBhuiuLPaJs2hPaIu"], ["created_at", "2019-12-06 02:06:10.230823"], ["updated_at", "2019-12-06 02:06:10.230823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.233016"], ["updated_at", "2019-12-06 02:06:10.233016"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1018], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1180], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1180], ["room_id", 1018], ["created_at", "2019-12-06 02:06:10.237848"], ["updated_at", "2019-12-06 02:06:10.237848"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1018"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1018], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1018')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 102ms (Views: 71.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Dn4xanHBr0mc9U9lH9UEC.iM9wHZ1jBfXQl3K4CUukSU/qPaNF.Hi"], ["created_at", "2019-12-06 02:06:10.811114"], ["updated_at", "2019-12-06 02:06:10.811114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.813107"], ["updated_at", "2019-12-06 02:06:10.813107"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.828679"], ["last_sign_in_at", "2019-12-06 02:06:10.828679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.829308"], ["id", 1181]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1019"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1019], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1181], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1181], ["room_id", 1019], ["created_at", "2019-12-06 02:06:10.845684"], ["updated_at", "2019-12-06 02:06:10.845684"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1019], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VYaHbCjyZPiODdhcxZKLfOvmZYJt6SYj4nuhV98QLEAETSY6YiGo6"], ["created_at", "2019-12-06 02:06:10.854368"], ["updated_at", "2019-12-06 02:06:10.854368"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.856596"], ["updated_at", "2019-12-06 02:06:10.856596"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.858892"], ["last_sign_in_at", "2019-12-06 02:06:10.858892"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.859590"], ["id", 1182]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1020"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1020], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1182], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1182], ["room_id", 1020], ["created_at", "2019-12-06 02:06:10.864629"], ["updated_at", "2019-12-06 02:06:10.864629"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$26EXq9jN8hlNwv5oLmqIvOL/JG8PH8MKMJVooh6Rag.4OrTSesbm6"], ["created_at", "2019-12-06 02:06:10.874509"], ["updated_at", "2019-12-06 02:06:10.874509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.877032"], ["updated_at", "2019-12-06 02:06:10.877032"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.880083"], ["last_sign_in_at", "2019-12-06 02:06:10.880083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.880684"], ["id", 1183]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1021"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1021], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$h3LqGRWzfK4Qoe5ACo1qP.h//SvjsCCc1nQhOxXebbNU5Xurl.hoi"], ["created_at", "2019-12-06 02:06:10.890519"], ["updated_at", "2019-12-06 02:06:10.890519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.892814"], ["updated_at", "2019-12-06 02:06:10.892814"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.895192"], ["last_sign_in_at", "2019-12-06 02:06:10.895192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.895711"], ["id", 1184]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1022"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$c9slA73nhP1Hjaw2CCYSnuyNTulZBdNtJivb6Yp1sSeA1L0p..TSe"], ["created_at", "2019-12-06 02:06:10.906075"], ["updated_at", "2019-12-06 02:06:10.906075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.908719"], ["updated_at", "2019-12-06 02:06:10.908719"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1023], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1185], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1185], ["room_id", 1023], ["created_at", "2019-12-06 02:06:10.913781"], ["updated_at", "2019-12-06 02:06:10.913781"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1023” for 127.0.0.1 at 2019-12-05 23:06:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.916182"], ["last_sign_in_at", "2019-12-06 02:06:10.916182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.916717"], ["id", 1185]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1023"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1023], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1023')[0m
Rendered appointments/show.html.erb within layouts/application (20.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 387ms (Views: 370.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dEcp2CZF7qG31Zs/aRZlt.v1ul9exwaZWonGSZ/zbr9w3WERaxeBG"], ["created_at", "2019-12-06 02:06:11.313957"], ["updated_at", "2019-12-06 02:06:11.313957"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.316189"], ["updated_at", "2019-12-06 02:06:11.316189"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1024], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1186], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1186], ["room_id", 1024], ["created_at", "2019-12-06 02:06:11.321656"], ["updated_at", "2019-12-06 02:06:11.321656"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1024], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1186], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1186], ["room_id", 1024], ["created_at", "2019-12-06 02:06:11.325592"], ["updated_at", "2019-12-06 02:06:11.325592"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.327938"], ["last_sign_in_at", "2019-12-06 02:06:11.327938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.328477"], ["id", 1186]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1186]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/fxR0ZPEM6.u3t/MXngQW.uyKiVNXjN01A7pvUfT7k3jG3xAxxU62"], ["created_at", "2019-12-06 02:06:11.372407"], ["updated_at", "2019-12-06 02:06:11.372407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.374725"], ["updated_at", "2019-12-06 02:06:11.374725"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1025], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1187], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1187], ["room_id", 1025], ["created_at", "2019-12-06 02:06:11.378672"], ["updated_at", "2019-12-06 02:06:11.378672"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1025], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1187], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1187], ["room_id", 1025], ["created_at", "2019-12-06 02:06:11.382667"], ["updated_at", "2019-12-06 02:06:11.382667"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.385562"], ["last_sign_in_at", "2019-12-06 02:06:11.385562"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.386159"], ["id", 1187]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1187]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yy8oG5Mn8oOZKa21izgB4.mPFejhv2yEm4vDLEGD8amN/fq/KPXRW"], ["created_at", "2019-12-06 02:06:11.399663"], ["updated_at", "2019-12-06 02:06:11.399663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.402481"], ["updated_at", "2019-12-06 02:06:11.402481"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1026], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1188], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1188], ["room_id", 1026], ["created_at", "2019-12-06 02:06:11.407081"], ["updated_at", "2019-12-06 02:06:11.407081"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/529” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.409395"], ["last_sign_in_at", "2019-12-06 02:06:11.409395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.409895"], ["id", 1188]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"529"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 529], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 529]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zni71m4NL8qKNki6ChERmO9M5GkSALddr.HKhKKAiP56SQtq80Gjq"], ["created_at", "2019-12-06 02:06:11.424110"], ["updated_at", "2019-12-06 02:06:11.424110"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.426498"], ["last_sign_in_at", "2019-12-06 02:06:11.426498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.426982"], ["id", 1189]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hilJ50QVk0MD9StOWPcPWeWq4xRpBPjnjtFpuITQUReAEtioq1.s2"], ["created_at", "2019-12-06 02:06:11.472398"], ["updated_at", "2019-12-06 02:06:11.472398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.474546"], ["updated_at", "2019-12-06 02:06:11.474546"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1027], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1190], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1190], ["room_id", 1027], ["created_at", "2019-12-06 02:06:11.478746"], ["updated_at", "2019-12-06 02:06:11.478746"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1027], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1190], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1190], ["room_id", 1027], ["created_at", "2019-12-06 02:06:11.482756"], ["updated_at", "2019-12-06 02:06:11.482756"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.486217"], ["last_sign_in_at", "2019-12-06 02:06:11.486217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.487419"], ["id", 1190]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1027], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1190], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1190], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kfbEY54pUfuKRNDiApobU.38YybKCtmlzwxYetSq5f5W1jMm8sXrC"], ["created_at", "2019-12-06 02:06:11.502447"], ["updated_at", "2019-12-06 02:06:11.502447"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.504713"], ["updated_at", "2019-12-06 02:06:11.504713"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1191], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1191], ["room_id", 1028], ["created_at", "2019-12-06 02:06:11.508562"], ["updated_at", "2019-12-06 02:06:11.508562"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1191], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1191], ["room_id", 1028], ["created_at", "2019-12-06 02:06:11.512391"], ["updated_at", "2019-12-06 02:06:11.512391"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.514679"], ["last_sign_in_at", "2019-12-06 02:06:11.514679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.515228"], ["id", 1191]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1191], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1191], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JlwmPSfPnMVISOqbnIIUs.Va9t5TJigUDjdRTh7AftyIBfSxCwAga"], ["created_at", "2019-12-06 02:06:11.529834"], ["updated_at", "2019-12-06 02:06:11.529834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.532149"], ["updated_at", "2019-12-06 02:06:11.532149"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1029], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1192], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1192], ["room_id", 1029], ["created_at", "2019-12-06 02:06:11.537121"], ["updated_at", "2019-12-06 02:06:11.537121"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1029], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1192], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1192], ["room_id", 1029], ["created_at", "2019-12-06 02:06:11.541587"], ["updated_at", "2019-12-06 02:06:11.541587"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.543958"], ["last_sign_in_at", "2019-12-06 02:06:11.543958"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.544486"], ["id", 1192]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B913I566foy9hnPnaTouUeRHiVe./Mof6lBg7owGkQIYYNOv5t50O"], ["created_at", "2019-12-06 02:06:11.556023"], ["updated_at", "2019-12-06 02:06:11.556023"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.558212"], ["updated_at", "2019-12-06 02:06:11.558212"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1030], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1193], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1193], ["room_id", 1030], ["created_at", "2019-12-06 02:06:11.562048"], ["updated_at", "2019-12-06 02:06:11.562048"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1030], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1193], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1193], ["room_id", 1030], ["created_at", "2019-12-06 02:06:11.565961"], ["updated_at", "2019-12-06 02:06:11.565961"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.568648"], ["last_sign_in_at", "2019-12-06 02:06:11.568648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.569263"], ["id", 1193]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bpmIPeLm40VWnpSCvvSfFOxn6IdmGAqDkLdSTYYMAekKrnIxFl5mG"], ["created_at", "2019-12-06 02:06:11.583388"], ["updated_at", "2019-12-06 02:06:11.583388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.586441"], ["last_sign_in_at", "2019-12-06 02:06:11.586441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.587025"], ["id", 1194]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 62ms (Views: 46.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vv/JB5jccxzOul7voQ/pAukLqqJ8bb.GFPIOe0aORiLBmmRo5hBdO"], ["created_at", "2019-12-06 02:06:11.660747"], ["updated_at", "2019-12-06 02:06:11.660747"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.663029"], ["last_sign_in_at", "2019-12-06 02:06:11.663029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.663520"], ["id", 1195]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v2Hm3tXK.XN2Av6Xbq83xubp2WLWHG.dSlZeRi6AznOcwVlEn24EO"], ["created_at", "2019-12-06 02:06:11.675477"], ["updated_at", "2019-12-06 02:06:11.675477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.677907"], ["last_sign_in_at", "2019-12-06 02:06:11.677907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.678390"], ["id", 1196]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N2fAHmuvj15ZpLIpla/2jeaZ/WQWyk5ljZycc1OaqDBkm7P11cfsK"], ["created_at", "2019-12-06 02:06:11.705645"], ["updated_at", "2019-12-06 02:06:11.705645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.708017"], ["last_sign_in_at", "2019-12-06 02:06:11.708017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.708510"], ["id", 1197]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4vg6nsL8ariNBV5Y4w.AIOGTzWuNRb7vIynG4x/tZB/9OrvvdOqoG"], ["created_at", "2019-12-06 02:06:11.729390"], ["updated_at", "2019-12-06 02:06:11.729390"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.731614"], ["updated_at", "2019-12-06 02:06:11.731614"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1031” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.733554"], ["last_sign_in_at", "2019-12-06 02:06:11.733554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.734193"], ["id", 1198]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1031"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1031], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LzQOga.Stguq/Nf0/w1Uc.Ud30ykW/BAUGsdEEO9GhSV0Q0Cp8Tjy"], ["created_at", "2019-12-06 02:06:11.761525"], ["updated_at", "2019-12-06 02:06:11.761525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.763798"], ["updated_at", "2019-12-06 02:06:11.763798"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1032” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.766041"], ["last_sign_in_at", "2019-12-06 02:06:11.766041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.766728"], ["id", 1199]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1032"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1032], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.777294"], ["updated_at", "2019-12-06 02:06:11.777294"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1033” for 127.0.0.1 at 2019-12-05 23:06:11 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1033"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UDf/LB1ZMMyaP3sYEmkGmegbo4tF8oxySzH7OvNI2G.2flln3eEvO"], ["created_at", "2019-12-06 02:06:11.788716"], ["updated_at", "2019-12-06 02:06:11.788716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.790945"], ["updated_at", "2019-12-06 02:06:11.790945"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1034/edit” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.792985"], ["last_sign_in_at", "2019-12-06 02:06:11.792985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.793484"], ["id", 1200]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1034"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1034], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gDq2GXkD2nqpOwU/ZdDise2qhEOC1e0glxsg.E9bP0reiaVNn8i/u"], ["created_at", "2019-12-06 02:06:11.821823"], ["updated_at", "2019-12-06 02:06:11.821823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.824070"], ["updated_at", "2019-12-06 02:06:11.824070"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1035/edit” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.826595"], ["last_sign_in_at", "2019-12-06 02:06:11.826595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.827340"], ["id", 1201]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1035"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1035], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.845627"], ["updated_at", "2019-12-06 02:06:11.845627"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1036” for 127.0.0.1 at 2019-12-05 23:06:11 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1036"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3pMZZVPnzTDpuRQ4kciQyuRy1/Yb9C/.Mf4XWegqU9ADeA3eqjKMy"], ["created_at", "2019-12-06 02:06:11.858068"], ["updated_at", "2019-12-06 02:06:11.858068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.860708"], ["last_sign_in_at", "2019-12-06 02:06:11.860708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.861233"], ["id", 1202]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.864861"], ["updated_at", "2019-12-06 02:06:11.864861"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6kXiXhbycsvc5m6wDVf38.X0CBbX1T2j09PDlaVK086zIcFyP4YyS"], ["created_at", "2019-12-06 02:06:11.872990"], ["updated_at", "2019-12-06 02:06:11.872990"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.875548"], ["last_sign_in_at", "2019-12-06 02:06:11.875548"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.876028"], ["id", 1203]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.879115"], ["updated_at", "2019-12-06 02:06:11.879115"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LqjNQGwFE96jGJEW8SANyegNP9U3H/IQ8hwe0ZB811I4ykRdW1S5K"], ["created_at", "2019-12-06 02:06:11.887578"], ["updated_at", "2019-12-06 02:06:11.887578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.890109"], ["last_sign_in_at", "2019-12-06 02:06:11.890109"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.890591"], ["id", 1204]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yV0yScn9Q1KuZpSpLyq.ye0BFb2FEcnN7NDjlksRtkuOzqCmHHf3u"], ["created_at", "2019-12-06 02:06:11.902343"], ["updated_at", "2019-12-06 02:06:11.902343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.904954"], ["last_sign_in_at", "2019-12-06 02:06:11.904954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.905597"], ["id", 1205]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wt2X4kYqcfHwM1.y6FRoSuVqzxsHoEEyLGmhQCSUSWbX7UpHsGe2q"], ["created_at", "2019-12-06 02:06:11.918174"], ["updated_at", "2019-12-06 02:06:11.918174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.921028"], ["last_sign_in_at", "2019-12-06 02:06:11.921028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.921955"], ["id", 1206]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P3omOAHegfOcjVTQmgTqs.KEo7llem6jagQ.oj5YUqn/4MC1rRkIS"], ["created_at", "2019-12-06 02:06:11.933917"], ["updated_at", "2019-12-06 02:06:11.933917"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.936720"], ["updated_at", "2019-12-06 02:06:11.936720"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1039” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.939233"], ["last_sign_in_at", "2019-12-06 02:06:11.939233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.939774"], ["id", 1207]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1039"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1039], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:06:11.943834"], ["id", 1039]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1039 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AKo0HX01jXIdk51KPUNfXeWnBa6FpiH4JRSYmZouyYeaR3AA49lkG"], ["created_at", "2019-12-06 02:06:11.953047"], ["updated_at", "2019-12-06 02:06:11.953047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.955491"], ["updated_at", "2019-12-06 02:06:11.955491"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1040” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.958416"], ["last_sign_in_at", "2019-12-06 02:06:11.958416"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.959009"], ["id", 1208]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1040"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1040], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:06:11.962955"], ["id", 1040]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1040 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ydyDZ9FgdYgvPMBKAadXZ.KPyJMQ1gBqCxqE97zu.bxv16z21q2kK"], ["created_at", "2019-12-06 02:06:11.972133"], ["updated_at", "2019-12-06 02:06:11.972133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.974316"], ["updated_at", "2019-12-06 02:06:11.974316"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1041” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.976870"], ["last_sign_in_at", "2019-12-06 02:06:11.976870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.977457"], ["id", 1209]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1041"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1041], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TJFhSioiIRkTzgpbsNFRXemoFWaiXACqAre9Jg6fAyCshwKxtihP."], ["created_at", "2019-12-06 02:06:11.991552"], ["updated_at", "2019-12-06 02:06:11.991552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.993750"], ["updated_at", "2019-12-06 02:06:11.993750"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1042” for 127.0.0.1 at 2019-12-05 23:06:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.995946"], ["last_sign_in_at", "2019-12-06 02:06:11.995946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.996431"], ["id", 1210]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1042"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1042], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ND.3ulZhLs1RZqMRRJ6NBORx2sTWquiEoHFZl34OyDHxkTeLeoZme"], ["created_at", "2019-12-06 02:06:12.011563"], ["updated_at", "2019-12-06 02:06:12.011563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:12 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.014095"], ["last_sign_in_at", "2019-12-06 02:06:12.014095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.014612"], ["id", 1211]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kla3D5IGvLMrWzYOJqQiZOEGI/HUExvAGWE82uK9GSdGA96S4pPRO"], ["created_at", "2019-12-06 02:06:12.025308"], ["updated_at", "2019-12-06 02:06:12.025308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.028498"], ["updated_at", "2019-12-06 02:06:12.028498"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1043” for 127.0.0.1 at 2019-12-05 23:06:12 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.030503"], ["last_sign_in_at", "2019-12-06 02:06:12.030503"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.031019"], ["id", 1212]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1043"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1043], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1043]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7xKZ0f2jZ/9VRikMhxVhxOmlMfHOrtDg0djHklGo2xRjK0/2MmGD."], ["created_at", "2019-12-06 02:06:12.042508"], ["updated_at", "2019-12-06 02:06:12.042508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.044823"], ["updated_at", "2019-12-06 02:06:12.044823"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1044” for 127.0.0.1 at 2019-12-05 23:06:12 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.046695"], ["last_sign_in_at", "2019-12-06 02:06:12.046695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.047323"], ["id", 1213]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1044"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1044], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1044]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9Xf7F3znjnuLBXM3Oc0l2uQm5njCpqTaVaxndeIQYQrmQB6zP1Nzy"], ["created_at", "2019-12-06 02:06:12.059046"], ["updated_at", "2019-12-06 02:06:12.059046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.061330"], ["updated_at", "2019-12-06 02:06:12.061330"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1045” for 127.0.0.1 at 2019-12-05 23:06:12 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.063249"], ["last_sign_in_at", "2019-12-06 02:06:12.063249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.063751"], ["id", 1214]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1045"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UVaq/t6UhkVXyP4vOGOBCu02WAPD9uoX77qMx7reLyRId8P3Skowm"], ["created_at", "2019-12-06 02:06:12.073425"], ["updated_at", "2019-12-06 02:06:12.073425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.075605"], ["updated_at", "2019-12-06 02:06:12.075605"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1046” for 127.0.0.1 at 2019-12-05 23:06:12 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.077455"], ["last_sign_in_at", "2019-12-06 02:06:12.077455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.077931"], ["id", 1215]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1046"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$5G7U.z8oQxPgi00vaA0LdeERY5kO9vJkrAzZhI0svuj47paqfMdBm"], ["created_at", "2019-12-06 02:08:32.959774"], ["updated_at", "2019-12-06 02:08:32.959774"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:32.968520"], ["updated_at", "2019-12-06 02:08:32.968520"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1047"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1047], ["LIMIT", 1]]
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1047')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 150ms (Views: 107.5ms | ActiveRecord: 2.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$pz353Qg2yrEt4eI0pY4fHuGhmxACvN6ftA9hBugUNCSrN0r4FP0kS"], ["created_at", "2019-12-06 02:08:33.129714"], ["updated_at", "2019-12-06 02:08:33.129714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.131929"], ["updated_at", "2019-12-06 02:08:33.131929"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1048], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1217], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1217], ["room_id", 1048], ["created_at", "2019-12-06 02:08:33.169259"], ["updated_at", "2019-12-06 02:08:33.169259"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1048"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1048], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1048')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$gNxm5TSoUJUK70tZaOwU8.tLfJo72buLjWHu8VdmhmkWiW3dipgMC"], ["created_at", "2019-12-06 02:08:33.217869"], ["updated_at", "2019-12-06 02:08:33.217869"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.220100"], ["updated_at", "2019-12-06 02:08:33.220100"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1049], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1218], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1218], ["room_id", 1049], ["created_at", "2019-12-06 02:08:33.224774"], ["updated_at", "2019-12-06 02:08:33.224774"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1049"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1049], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1049')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YjVG2vWaMRFX0KZiuck7pucgn3DbIdVFrXWfaTSj2wGbSyXC8Eg9S"], ["created_at", "2019-12-06 02:08:33.241688"], ["updated_at", "2019-12-06 02:08:33.241688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.243709"], ["updated_at", "2019-12-06 02:08:33.243709"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1050], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1219], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1219], ["room_id", 1050], ["created_at", "2019-12-06 02:08:33.248050"], ["updated_at", "2019-12-06 02:08:33.248050"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1050"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1050], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1050')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$H0ASaDRDG2IWdQb.e5qJhO2K5hOZw0YX9/rPURKWSnBhI.4/KSTCO"], ["created_at", "2019-12-06 02:08:33.268082"], ["updated_at", "2019-12-06 02:08:33.268082"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.270438"], ["updated_at", "2019-12-06 02:08:33.270438"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1051], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1220], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1220], ["room_id", 1051], ["created_at", "2019-12-06 02:08:33.275940"], ["updated_at", "2019-12-06 02:08:33.275940"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1051"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1051], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1051')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 104ms (Views: 72.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$v2cvAETvpEhilHmnpY1zKeDy5yF7vydkKzl5MaQSe7fqqnS9w7Pmi"], ["created_at", "2019-12-06 02:08:33.852995"], ["updated_at", "2019-12-06 02:08:33.852995"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.855077"], ["updated_at", "2019-12-06 02:08:33.855077"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.870560"], ["last_sign_in_at", "2019-12-06 02:08:33.870560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.871157"], ["id", 1221]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1052"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1052], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1221], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1221], ["room_id", 1052], ["created_at", "2019-12-06 02:08:33.887583"], ["updated_at", "2019-12-06 02:08:33.887583"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1052], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sgi9mcdZekNqd/rbQgWNre8sKlnPTgfV10FBdvFpdO5hSsOzfJ88m"], ["created_at", "2019-12-06 02:08:33.896289"], ["updated_at", "2019-12-06 02:08:33.896289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.898248"], ["updated_at", "2019-12-06 02:08:33.898248"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.900389"], ["last_sign_in_at", "2019-12-06 02:08:33.900389"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.900843"], ["id", 1222]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1053"}
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1053], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1222], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1222], ["room_id", 1053], ["created_at", "2019-12-06 02:08:33.906574"], ["updated_at", "2019-12-06 02:08:33.906574"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$gtCnWE5nQzji.9eRCqMX8.cb1LDJ9BO4PJ9Fxof/3uzkibXi9wYGu"], ["created_at", "2019-12-06 02:08:33.915679"], ["updated_at", "2019-12-06 02:08:33.915679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.917675"], ["updated_at", "2019-12-06 02:08:33.917675"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.920046"], ["last_sign_in_at", "2019-12-06 02:08:33.920046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.920622"], ["id", 1223]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1054"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1054], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$DkFlNWojJ2yzFSwgjpmT5.KYWxwMiFH7sLwCDBf0cddFNnf5PNJkq"], ["created_at", "2019-12-06 02:08:33.929194"], ["updated_at", "2019-12-06 02:08:33.929194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.931761"], ["updated_at", "2019-12-06 02:08:33.931761"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.933862"], ["last_sign_in_at", "2019-12-06 02:08:33.933862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.934401"], ["id", 1224]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1055"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$FXg9sHoxitP5u1cqBnR2NuOPGhNUjtRXJVfp/Hxl0LJOhy9GOee02"], ["created_at", "2019-12-06 02:08:33.944759"], ["updated_at", "2019-12-06 02:08:33.944759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.946780"], ["updated_at", "2019-12-06 02:08:33.946780"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1056], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1225], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1225], ["room_id", 1056], ["created_at", "2019-12-06 02:08:33.950635"], ["updated_at", "2019-12-06 02:08:33.950635"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1056” for 127.0.0.1 at 2019-12-05 23:08:33 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.952963"], ["last_sign_in_at", "2019-12-06 02:08:33.952963"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.953460"], ["id", 1225]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1056"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1056], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1056')[0m
Rendered appointments/show.html.erb within layouts/application (20.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 386ms (Views: 369.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$uIQBukkZcFdrty0/LmuNHOoS9FK32BEJf57NINfmZvDZqnBqZ5.ga"], ["created_at", "2019-12-06 02:08:34.349717"], ["updated_at", "2019-12-06 02:08:34.349717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.351874"], ["updated_at", "2019-12-06 02:08:34.351874"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1057], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1226], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1226], ["room_id", 1057], ["created_at", "2019-12-06 02:08:34.356541"], ["updated_at", "2019-12-06 02:08:34.356541"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1057], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1226], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1226], ["room_id", 1057], ["created_at", "2019-12-06 02:08:34.360527"], ["updated_at", "2019-12-06 02:08:34.360527"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.362824"], ["last_sign_in_at", "2019-12-06 02:08:34.362824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.363354"], ["id", 1226]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1226]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 36ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$C6YL8Cufid2L2WC4Y2xNfuH.Vgzzy39DmOcV7ETJGTXoeCPKw2YZ2"], ["created_at", "2019-12-06 02:08:34.407905"], ["updated_at", "2019-12-06 02:08:34.407905"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.410186"], ["updated_at", "2019-12-06 02:08:34.410186"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1058], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1227], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1227], ["room_id", 1058], ["created_at", "2019-12-06 02:08:34.414259"], ["updated_at", "2019-12-06 02:08:34.414259"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1058], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1227], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1227], ["room_id", 1058], ["created_at", "2019-12-06 02:08:34.418023"], ["updated_at", "2019-12-06 02:08:34.418023"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.420340"], ["last_sign_in_at", "2019-12-06 02:08:34.420340"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.420853"], ["id", 1227]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1227]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hvXlJNeUNnqLBA38b/2u1ONKFw5J80QFs9/g5chffvDaG5YSfDYaS"], ["created_at", "2019-12-06 02:08:34.434438"], ["updated_at", "2019-12-06 02:08:34.434438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.436682"], ["updated_at", "2019-12-06 02:08:34.436682"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1059], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1228], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1228], ["room_id", 1059], ["created_at", "2019-12-06 02:08:34.441420"], ["updated_at", "2019-12-06 02:08:34.441420"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/549” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.443575"], ["last_sign_in_at", "2019-12-06 02:08:34.443575"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.444070"], ["id", 1228]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"549"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 549], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 549]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UHwhcdxWf7b/SKOjri2d9e.V0cz4xq1AE.zwVGeQWXV6rQ32QQure"], ["created_at", "2019-12-06 02:08:34.457925"], ["updated_at", "2019-12-06 02:08:34.457925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.460256"], ["last_sign_in_at", "2019-12-06 02:08:34.460256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.460729"], ["id", 1229]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 35ms (Views: 18.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C9DtU8tgnCY2hXw/jcZTHeig6nGLRRHLHYad7.ffL2TSa/fSeS2HG"], ["created_at", "2019-12-06 02:08:34.505483"], ["updated_at", "2019-12-06 02:08:34.505483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.508008"], ["updated_at", "2019-12-06 02:08:34.508008"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1060], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1230], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1230], ["room_id", 1060], ["created_at", "2019-12-06 02:08:34.512991"], ["updated_at", "2019-12-06 02:08:34.512991"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1060], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1230], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1230], ["room_id", 1060], ["created_at", "2019-12-06 02:08:34.516880"], ["updated_at", "2019-12-06 02:08:34.516880"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.519172"], ["last_sign_in_at", "2019-12-06 02:08:34.519172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.519675"], ["id", 1230]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1060], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1230], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1230], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$goXxAHXCnyJQ7fQqJnM1z.4bmugAnlxqBA2fJ.1IeikMKZVB6n.AO"], ["created_at", "2019-12-06 02:08:34.533296"], ["updated_at", "2019-12-06 02:08:34.533296"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.535563"], ["updated_at", "2019-12-06 02:08:34.535563"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1061], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1231], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1231], ["room_id", 1061], ["created_at", "2019-12-06 02:08:34.540052"], ["updated_at", "2019-12-06 02:08:34.540052"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1061], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1231], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1231], ["room_id", 1061], ["created_at", "2019-12-06 02:08:34.544041"], ["updated_at", "2019-12-06 02:08:34.544041"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.546368"], ["last_sign_in_at", "2019-12-06 02:08:34.546368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.546869"], ["id", 1231]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1061], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1231], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1231], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m4uKpmTcl.S/Atl/1lIdneHsUm7JzKvnS3zZcsjKfXtvD28IgJLu6"], ["created_at", "2019-12-06 02:08:34.561723"], ["updated_at", "2019-12-06 02:08:34.561723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.563948"], ["updated_at", "2019-12-06 02:08:34.563948"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1062], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1232], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1232], ["room_id", 1062], ["created_at", "2019-12-06 02:08:34.568256"], ["updated_at", "2019-12-06 02:08:34.568256"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1062], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1232], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1232], ["room_id", 1062], ["created_at", "2019-12-06 02:08:34.573001"], ["updated_at", "2019-12-06 02:08:34.573001"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.576037"], ["last_sign_in_at", "2019-12-06 02:08:34.576037"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.576607"], ["id", 1232]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QXVyToapjzpznNltWhLOuOVAx9L3FzZ7I9BdYQtZj5zWH42Lue/Sm"], ["created_at", "2019-12-06 02:08:34.588342"], ["updated_at", "2019-12-06 02:08:34.588342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.590994"], ["updated_at", "2019-12-06 02:08:34.590994"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1063], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1233], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1233], ["room_id", 1063], ["created_at", "2019-12-06 02:08:34.595038"], ["updated_at", "2019-12-06 02:08:34.595038"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1063], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1233], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1233], ["room_id", 1063], ["created_at", "2019-12-06 02:08:34.598826"], ["updated_at", "2019-12-06 02:08:34.598826"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.601068"], ["last_sign_in_at", "2019-12-06 02:08:34.601068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.601615"], ["id", 1233]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lszByer2RfijfDofyvyEx.GRqZhPoOwhpH5rKmOgMQ9vKTPzoNAJ6"], ["created_at", "2019-12-06 02:08:34.615543"], ["updated_at", "2019-12-06 02:08:34.615543"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.618134"], ["last_sign_in_at", "2019-12-06 02:08:34.618134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.618816"], ["id", 1234]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 62ms (Views: 46.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QI8sRLwzmscutO5TllDB2.qcmO89elCIBXoexy3pEzpCeOWBVSX5i"], ["created_at", "2019-12-06 02:08:34.693224"], ["updated_at", "2019-12-06 02:08:34.693224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.695466"], ["last_sign_in_at", "2019-12-06 02:08:34.695466"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.695950"], ["id", 1235]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fKcAsIPwpydL0yUZPEB/sObXG9zRuM3CqF1oYAOmM1Cs3Dfxo3yq."], ["created_at", "2019-12-06 02:08:34.707057"], ["updated_at", "2019-12-06 02:08:34.707057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.709604"], ["last_sign_in_at", "2019-12-06 02:08:34.709604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.710114"], ["id", 1236]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.FAFTO8/RfuFj/EelEm2MuFjI/2o907b8DGoTXmH6kET8O/CeZAB."], ["created_at", "2019-12-06 02:08:34.737560"], ["updated_at", "2019-12-06 02:08:34.737560"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.740441"], ["last_sign_in_at", "2019-12-06 02:08:34.740441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.740950"], ["id", 1237]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.0ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d5JfkU/M6Kz7V2tRktqWRO4G2R2h7tAGORZEN7LM/zrMMRHZ.Y87S"], ["created_at", "2019-12-06 02:08:34.760865"], ["updated_at", "2019-12-06 02:08:34.760865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.763400"], ["updated_at", "2019-12-06 02:08:34.763400"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1064” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.765331"], ["last_sign_in_at", "2019-12-06 02:08:34.765331"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.765782"], ["id", 1238]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1064"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1064], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dsKJHCbkDwMwCLJ40Nyv8.oBZmM0SI9Q1iomAuztZHb6n5tt5wda."], ["created_at", "2019-12-06 02:08:34.792276"], ["updated_at", "2019-12-06 02:08:34.792276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.794429"], ["updated_at", "2019-12-06 02:08:34.794429"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1065” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.796357"], ["last_sign_in_at", "2019-12-06 02:08:34.796357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.797034"], ["id", 1239]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1065"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1065], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.806581"], ["updated_at", "2019-12-06 02:08:34.806581"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1066” for 127.0.0.1 at 2019-12-05 23:08:34 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1066"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GztphIAhJfDGJ3YDarhwUeB1uQTaPAX3MfkCpEmqD6tP2aTBike7O"], ["created_at", "2019-12-06 02:08:34.817982"], ["updated_at", "2019-12-06 02:08:34.817982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.820334"], ["updated_at", "2019-12-06 02:08:34.820334"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1067/edit” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.822773"], ["last_sign_in_at", "2019-12-06 02:08:34.822773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.823431"], ["id", 1240]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1067"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1067], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aoN4uDvWhDlXu83B/smKe.MY8W7RnCHKGEz7pnu3OKkh02.YqP1yu"], ["created_at", "2019-12-06 02:08:34.852622"], ["updated_at", "2019-12-06 02:08:34.852622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.855039"], ["updated_at", "2019-12-06 02:08:34.855039"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1068/edit” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.857813"], ["last_sign_in_at", "2019-12-06 02:08:34.857813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.858574"], ["id", 1241]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1068"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1068], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.877027"], ["updated_at", "2019-12-06 02:08:34.877027"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1069” for 127.0.0.1 at 2019-12-05 23:08:34 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1069"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yegqaOJJohKiJESlxG7EMee8bpS/p7kT7YuyFE9WgjIskMHTBv74e"], ["created_at", "2019-12-06 02:08:34.889605"], ["updated_at", "2019-12-06 02:08:34.889605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.892325"], ["last_sign_in_at", "2019-12-06 02:08:34.892325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.893073"], ["id", 1242]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.896642"], ["updated_at", "2019-12-06 02:08:34.896642"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n3FOfgkNRTF6oqfzX6KNgOoaC5u1u/XsdLzGsgVJ9iVA/NvQiulvq"], ["created_at", "2019-12-06 02:08:34.905241"], ["updated_at", "2019-12-06 02:08:34.905241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.908081"], ["last_sign_in_at", "2019-12-06 02:08:34.908081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.908584"], ["id", 1243]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.911692"], ["updated_at", "2019-12-06 02:08:34.911692"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C.W4jrCzCBnpJbm0ZcvjreOMqfo.2r3ioj/uBos.VxAlEC/U2j5Q2"], ["created_at", "2019-12-06 02:08:34.922084"], ["updated_at", "2019-12-06 02:08:34.922084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.925173"], ["last_sign_in_at", "2019-12-06 02:08:34.925173"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.925761"], ["id", 1244]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vZLFx5QMrOKqVohnyNtt6eOaUPqk0y7oxIQ6SoAHjqC/w0wPUXCeW"], ["created_at", "2019-12-06 02:08:34.936343"], ["updated_at", "2019-12-06 02:08:34.936343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.939375"], ["last_sign_in_at", "2019-12-06 02:08:34.939375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.939941"], ["id", 1245]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$727ZUIR9OSHNLZVEW03ZzOuueltjS6kigw/KmFRfO6ODJTm0J3tzi"], ["created_at", "2019-12-06 02:08:34.950326"], ["updated_at", "2019-12-06 02:08:34.950326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.952644"], ["last_sign_in_at", "2019-12-06 02:08:34.952644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.953132"], ["id", 1246]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lpmv7v2Nh8xp8qxXZ4hR.e91iE7JdzN9Ghe0n9MzGHZwXZ73dulSi"], ["created_at", "2019-12-06 02:08:34.964048"], ["updated_at", "2019-12-06 02:08:34.964048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.966436"], ["updated_at", "2019-12-06 02:08:34.966436"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1072” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.968675"], ["last_sign_in_at", "2019-12-06 02:08:34.968675"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.969091"], ["id", 1247]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1072"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1072], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:08:34.972860"], ["id", 1072]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1072 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/TGnLZnZzV7rZFlafKoAe.5eTTMZURI6QUmk1Hxu8g7iwM2dFAoF6"], ["created_at", "2019-12-06 02:08:34.980711"], ["updated_at", "2019-12-06 02:08:34.980711"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.982986"], ["updated_at", "2019-12-06 02:08:34.982986"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1073” for 127.0.0.1 at 2019-12-05 23:08:34 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.985101"], ["last_sign_in_at", "2019-12-06 02:08:34.985101"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.985769"], ["id", 1248]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1073"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1073], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:08:34.989618"], ["id", 1073]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1073 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2w959fgiyd5ctIRBJZDjz.bQtwPikmKCGTwFadU9q9UrDuoezhvtS"], ["created_at", "2019-12-06 02:08:34.998472"], ["updated_at", "2019-12-06 02:08:34.998472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.000807"], ["updated_at", "2019-12-06 02:08:35.000807"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1074” for 127.0.0.1 at 2019-12-05 23:08:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.003089"], ["last_sign_in_at", "2019-12-06 02:08:35.003089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.003600"], ["id", 1249]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1074"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1074], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CMVretK69kgRHH3KOoWyg.WUy4mHdkwKzKz1/oZvaq1/UrxMJm4HW"], ["created_at", "2019-12-06 02:08:35.017889"], ["updated_at", "2019-12-06 02:08:35.017889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.020118"], ["updated_at", "2019-12-06 02:08:35.020118"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1075” for 127.0.0.1 at 2019-12-05 23:08:35 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.022661"], ["last_sign_in_at", "2019-12-06 02:08:35.022661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.023483"], ["id", 1250]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1075"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1075], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2vJ0HKlrphq3Wom1C/eDL.G4EPWpkvLu4XzsIJEImtCQesh4.ApRS"], ["created_at", "2019-12-06 02:08:35.037739"], ["updated_at", "2019-12-06 02:08:35.037739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.040674"], ["last_sign_in_at", "2019-12-06 02:08:35.040674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.041241"], ["id", 1251]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o9FlXofRthA8nw2Hgc62U.9lBchakiCQKnmw/y2wfdh0GOqbLL6XC"], ["created_at", "2019-12-06 02:08:35.052054"], ["updated_at", "2019-12-06 02:08:35.052054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.054351"], ["updated_at", "2019-12-06 02:08:35.054351"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1076” for 127.0.0.1 at 2019-12-05 23:08:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.056527"], ["last_sign_in_at", "2019-12-06 02:08:35.056527"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.057059"], ["id", 1252]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1076"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1076], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1076]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JF8zlXNQ4/vvfz.PaEEuhOQnbdgryjo.neOUDiWQlQj/wmOPb.K.6"], ["created_at", "2019-12-06 02:08:35.068132"], ["updated_at", "2019-12-06 02:08:35.068132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.070353"], ["updated_at", "2019-12-06 02:08:35.070353"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1077” for 127.0.0.1 at 2019-12-05 23:08:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.072468"], ["last_sign_in_at", "2019-12-06 02:08:35.072468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.073116"], ["id", 1253]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1077"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1077], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1077]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g0ashfn1P7Xi3WMOfvEfIuy0AtEhUWZ1JWmo/iHNQYLNY2lBWOrym"], ["created_at", "2019-12-06 02:08:35.084844"], ["updated_at", "2019-12-06 02:08:35.084844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.087102"], ["updated_at", "2019-12-06 02:08:35.087102"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1078” for 127.0.0.1 at 2019-12-05 23:08:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.089348"], ["last_sign_in_at", "2019-12-06 02:08:35.089348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.089927"], ["id", 1254]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1078"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WeBuD.adPBvLwJBsk2IYn.dsj2rCqfUl9o21wTacoxIjJEN731HB6"], ["created_at", "2019-12-06 02:08:35.099048"], ["updated_at", "2019-12-06 02:08:35.099048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.101281"], ["updated_at", "2019-12-06 02:08:35.101281"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1079” for 127.0.0.1 at 2019-12-05 23:08:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.103147"], ["last_sign_in_at", "2019-12-06 02:08:35.103147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.103628"], ["id", 1255]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1079"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$zUSVkR4dH20/5FWEXKDMGuW06oHdmzlDBVzTJaUd3pgxMlHFXXtvS"], ["created_at", "2019-12-06 02:10:42.643367"], ["updated_at", "2019-12-06 02:10:42.643367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.651814"], ["updated_at", "2019-12-06 02:10:42.651814"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1080"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1080], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1080')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 157ms (Views: 111.3ms | ActiveRecord: 2.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$23kXb0Z2B5z3N/E.HDzUhuAAr1.eepNX5cDtxaLxbwAp3mthm989S"], ["created_at", "2019-12-06 02:10:42.818984"], ["updated_at", "2019-12-06 02:10:42.818984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.821181"], ["updated_at", "2019-12-06 02:10:42.821181"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1081], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1257], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1257], ["room_id", 1081], ["created_at", "2019-12-06 02:10:42.858378"], ["updated_at", "2019-12-06 02:10:42.858378"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1081"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1081], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1081')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ec5eV5Vu4d61J5eojzrZEuzC5AoBinyljeWyC1XZGtTR4pHDlY0Ia"], ["created_at", "2019-12-06 02:10:42.873042"], ["updated_at", "2019-12-06 02:10:42.873042"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.875351"], ["updated_at", "2019-12-06 02:10:42.875351"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1082], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1258], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1258], ["room_id", 1082], ["created_at", "2019-12-06 02:10:42.880335"], ["updated_at", "2019-12-06 02:10:42.880335"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1082"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1082], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1082')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ninaSLFkC0GcINmXz48iNOIllVXNV9OtQMqDFypp5HSXiXnYib5GK"], ["created_at", "2019-12-06 02:10:42.926114"], ["updated_at", "2019-12-06 02:10:42.926114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.928662"], ["updated_at", "2019-12-06 02:10:42.928662"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1083], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1259], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1259], ["room_id", 1083], ["created_at", "2019-12-06 02:10:42.933503"], ["updated_at", "2019-12-06 02:10:42.933503"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1083"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1083], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1083')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$wsNSlMeWX4teyOauKUmtFefuZPXjmzB.XzKBML18E6.LFJTHC8GBe"], ["created_at", "2019-12-06 02:10:42.953934"], ["updated_at", "2019-12-06 02:10:42.953934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.956150"], ["updated_at", "2019-12-06 02:10:42.956150"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1084], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1260], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1260], ["room_id", 1084], ["created_at", "2019-12-06 02:10:42.960751"], ["updated_at", "2019-12-06 02:10:42.960751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1084"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1084], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1084')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 102ms (Views: 72.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$REnLNMjy44hJpRDa/xNk/uMEQuvieBr0EAmqbMj8m8oVWTsXvQxVa"], ["created_at", "2019-12-06 02:10:43.532971"], ["updated_at", "2019-12-06 02:10:43.532971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.535205"], ["updated_at", "2019-12-06 02:10:43.535205"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.556809"], ["last_sign_in_at", "2019-12-06 02:10:43.556809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.557473"], ["id", 1261]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1085"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1085], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1261], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1261], ["room_id", 1085], ["created_at", "2019-12-06 02:10:43.574274"], ["updated_at", "2019-12-06 02:10:43.574274"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1085], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$El6.MlnB19kHwZqz.3GleO4OHKxEbpYoMMjkASIBBI2/SSKOKxs3S"], ["created_at", "2019-12-06 02:10:43.584122"], ["updated_at", "2019-12-06 02:10:43.584122"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.586415"], ["updated_at", "2019-12-06 02:10:43.586415"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.588738"], ["last_sign_in_at", "2019-12-06 02:10:43.588738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.589338"], ["id", 1262]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1086"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1086], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1262], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1262], ["room_id", 1086], ["created_at", "2019-12-06 02:10:43.594758"], ["updated_at", "2019-12-06 02:10:43.594758"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$477b27d72pIlj5qvi9MJWOz9iui2u6ZA9j7e1IpaWW835xIlMLaFO"], ["created_at", "2019-12-06 02:10:43.603943"], ["updated_at", "2019-12-06 02:10:43.603943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.606292"], ["updated_at", "2019-12-06 02:10:43.606292"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.609085"], ["last_sign_in_at", "2019-12-06 02:10:43.609085"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.609959"], ["id", 1263]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1087"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1087], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HQeY4eJ9Cc8HLdff3GqW3eH6SeJ6oUf2xzLUREF2Op04rvTzQMjz."], ["created_at", "2019-12-06 02:10:43.619737"], ["updated_at", "2019-12-06 02:10:43.619737"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.621941"], ["updated_at", "2019-12-06 02:10:43.621941"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.624213"], ["last_sign_in_at", "2019-12-06 02:10:43.624213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.624741"], ["id", 1264]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1088"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$X6BWlnolZWAAUmNaO4D5VOaI1u8SOi9A3MaNCmbrZa50vnNCxBKi6"], ["created_at", "2019-12-06 02:10:43.635455"], ["updated_at", "2019-12-06 02:10:43.635455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.637565"], ["updated_at", "2019-12-06 02:10:43.637565"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1089], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1265], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1265], ["room_id", 1089], ["created_at", "2019-12-06 02:10:43.642403"], ["updated_at", "2019-12-06 02:10:43.642403"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1089” for 127.0.0.1 at 2019-12-05 23:10:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.645071"], ["last_sign_in_at", "2019-12-06 02:10:43.645071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.645593"], ["id", 1265]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1089"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1089], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1089')[0m
Rendered appointments/show.html.erb within layouts/application (20.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)
Completed 200 OK in 387ms (Views: 370.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$4jC7WA8SnUmNcVmCC0AjV.RPiLtajuIVBt0e2959Ju4AaNB.4tB1m"], ["created_at", "2019-12-06 02:10:44.043487"], ["updated_at", "2019-12-06 02:10:44.043487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.045851"], ["updated_at", "2019-12-06 02:10:44.045851"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1090], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1266], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1266], ["room_id", 1090], ["created_at", "2019-12-06 02:10:44.050512"], ["updated_at", "2019-12-06 02:10:44.050512"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1090], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1266], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1266], ["room_id", 1090], ["created_at", "2019-12-06 02:10:44.054484"], ["updated_at", "2019-12-06 02:10:44.054484"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.056753"], ["last_sign_in_at", "2019-12-06 02:10:44.056753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.057204"], ["id", 1266]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1266]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 37ms (Views: 4.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IMRbqEKhl4DSHL.BZw4vjuPTOrgzm552MTDqyNDmPOyPN4a2mFCmy"], ["created_at", "2019-12-06 02:10:44.102471"], ["updated_at", "2019-12-06 02:10:44.102471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.104660"], ["updated_at", "2019-12-06 02:10:44.104660"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1091], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1267], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1267], ["room_id", 1091], ["created_at", "2019-12-06 02:10:44.108807"], ["updated_at", "2019-12-06 02:10:44.108807"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1091], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1267], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1267], ["room_id", 1091], ["created_at", "2019-12-06 02:10:44.113188"], ["updated_at", "2019-12-06 02:10:44.113188"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.115549"], ["last_sign_in_at", "2019-12-06 02:10:44.115549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.116083"], ["id", 1267]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1267]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$5S934qwxW64s0i3/HeFyOeddgLRh/bG1scjTqqTFJ5htm7r4TkfN6"], ["created_at", "2019-12-06 02:10:44.129406"], ["updated_at", "2019-12-06 02:10:44.129406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.131643"], ["updated_at", "2019-12-06 02:10:44.131643"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1092], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1268], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1268], ["room_id", 1092], ["created_at", "2019-12-06 02:10:44.135752"], ["updated_at", "2019-12-06 02:10:44.135752"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/569” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.138594"], ["last_sign_in_at", "2019-12-06 02:10:44.138594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.139301"], ["id", 1268]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"569"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 569], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 569]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v70GbSBEwbnHqtfWmzmVZuxGKy3P65AhkOosvl2K6/YihiDNzmqHK"], ["created_at", "2019-12-06 02:10:44.154392"], ["updated_at", "2019-12-06 02:10:44.154392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.156557"], ["last_sign_in_at", "2019-12-06 02:10:44.156557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.156994"], ["id", 1269]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$apqnRqKYMKlQd5Od2RGjHOY9uPp4je6q/fT.EjrLEJMQP9D1JI1AK"], ["created_at", "2019-12-06 02:10:44.203002"], ["updated_at", "2019-12-06 02:10:44.203002"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.205352"], ["updated_at", "2019-12-06 02:10:44.205352"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1093], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1270], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1270], ["room_id", 1093], ["created_at", "2019-12-06 02:10:44.211302"], ["updated_at", "2019-12-06 02:10:44.211302"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1093], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1270], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1270], ["room_id", 1093], ["created_at", "2019-12-06 02:10:44.215828"], ["updated_at", "2019-12-06 02:10:44.215828"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.218709"], ["last_sign_in_at", "2019-12-06 02:10:44.218709"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.219297"], ["id", 1270]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1093], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1270], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1270], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XaLjqBuPCBsGI2GlSQdZ6.UKvb65RQk9nQAUWSRtqEheyNy0zltAu"], ["created_at", "2019-12-06 02:10:44.235100"], ["updated_at", "2019-12-06 02:10:44.235100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.237696"], ["updated_at", "2019-12-06 02:10:44.237696"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1271], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1271], ["room_id", 1094], ["created_at", "2019-12-06 02:10:44.242775"], ["updated_at", "2019-12-06 02:10:44.242775"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1271], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1271], ["room_id", 1094], ["created_at", "2019-12-06 02:10:44.247321"], ["updated_at", "2019-12-06 02:10:44.247321"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.249911"], ["last_sign_in_at", "2019-12-06 02:10:44.249911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.250459"], ["id", 1271]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1271], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1271], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aSuZq2wXx/ANeh7rFHTxn.w.Y5819nSd6xDqd/JJe0ZDCroNNL0vS"], ["created_at", "2019-12-06 02:10:44.265015"], ["updated_at", "2019-12-06 02:10:44.265015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.267275"], ["updated_at", "2019-12-06 02:10:44.267275"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1095], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1272], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1272], ["room_id", 1095], ["created_at", "2019-12-06 02:10:44.271327"], ["updated_at", "2019-12-06 02:10:44.271327"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1095], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1272], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1272], ["room_id", 1095], ["created_at", "2019-12-06 02:10:44.275178"], ["updated_at", "2019-12-06 02:10:44.275178"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.277726"], ["last_sign_in_at", "2019-12-06 02:10:44.277726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.278274"], ["id", 1272]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eADs99YOiRHWARQHKO6HvO0arFvsU1vyrFAvRYxGasCugRHyDJrdy"], ["created_at", "2019-12-06 02:10:44.289161"], ["updated_at", "2019-12-06 02:10:44.289161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.291281"], ["updated_at", "2019-12-06 02:10:44.291281"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1096], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1273], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1273], ["room_id", 1096], ["created_at", "2019-12-06 02:10:44.295881"], ["updated_at", "2019-12-06 02:10:44.295881"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1096], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1273], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1273], ["room_id", 1096], ["created_at", "2019-12-06 02:10:44.299880"], ["updated_at", "2019-12-06 02:10:44.299880"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.301885"], ["last_sign_in_at", "2019-12-06 02:10:44.301885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.302348"], ["id", 1273]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CIhKNPCwZSAvD10aFyLPA.Pbo4nHNlwhCsWFrOjPFjTWksdicLrFi"], ["created_at", "2019-12-06 02:10:44.316103"], ["updated_at", "2019-12-06 02:10:44.316103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.318264"], ["last_sign_in_at", "2019-12-06 02:10:44.318264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.318696"], ["id", 1274]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.0ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 47.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sY8Fsw0ecqztQBMh9oYjk.24AEWXZCWwc9aVz3wK62Wx/XC5N2b4e"], ["created_at", "2019-12-06 02:10:44.395234"], ["updated_at", "2019-12-06 02:10:44.395234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.398066"], ["last_sign_in_at", "2019-12-06 02:10:44.398066"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.398619"], ["id", 1275]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7pb0djQBCIXhx3faHh/geedHr9AcA6xbhYj3VVPHYsfIFbzlOZDKa"], ["created_at", "2019-12-06 02:10:44.410492"], ["updated_at", "2019-12-06 02:10:44.410492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.412981"], ["last_sign_in_at", "2019-12-06 02:10:44.412981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.413478"], ["id", 1276]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Bh5/05/kbzvk3nCukqN4F.bN5I2y62tJJp8pB/aLreFrFOBya3B5."], ["created_at", "2019-12-06 02:10:44.442559"], ["updated_at", "2019-12-06 02:10:44.442559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.445171"], ["last_sign_in_at", "2019-12-06 02:10:44.445171"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.445662"], ["id", 1277]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o1serPOMm5C5jrRG2xPuB.2FqGjcl6l7UpiUfhgp6dlV6NwXu4GO2"], ["created_at", "2019-12-06 02:10:44.466354"], ["updated_at", "2019-12-06 02:10:44.466354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.469724"], ["updated_at", "2019-12-06 02:10:44.469724"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1097” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.471905"], ["last_sign_in_at", "2019-12-06 02:10:44.471905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.472430"], ["id", 1278]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1097"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1097], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7DUZhzAh0hsa3cq7DaV1v.VEjriYrrFptHaNcwoqxOalj/U0HEkTe"], ["created_at", "2019-12-06 02:10:44.499923"], ["updated_at", "2019-12-06 02:10:44.499923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.502164"], ["updated_at", "2019-12-06 02:10:44.502164"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1098” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.504495"], ["last_sign_in_at", "2019-12-06 02:10:44.504495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.505259"], ["id", 1279]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1098"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1098], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.515827"], ["updated_at", "2019-12-06 02:10:44.515827"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1099” for 127.0.0.1 at 2019-12-05 23:10:44 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1099"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kKZF2K1Ci7Y8Q8KTdhHKkefeGeOlPKjRujX1lbDa17EVqwilGpc9O"], ["created_at", "2019-12-06 02:10:44.527016"], ["updated_at", "2019-12-06 02:10:44.527016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.529418"], ["updated_at", "2019-12-06 02:10:44.529418"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1100/edit” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.531511"], ["last_sign_in_at", "2019-12-06 02:10:44.531511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.532005"], ["id", 1280]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1100"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1100], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$izrXOE6dR1Kf2X11.b4XCOQlRD9CnmntNRIEAtBXLgF8Bd468sloi"], ["created_at", "2019-12-06 02:10:44.560168"], ["updated_at", "2019-12-06 02:10:44.560168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.562788"], ["updated_at", "2019-12-06 02:10:44.562788"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1101/edit” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.565055"], ["last_sign_in_at", "2019-12-06 02:10:44.565055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.565744"], ["id", 1281]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1101"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1101], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.584395"], ["updated_at", "2019-12-06 02:10:44.584395"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1102” for 127.0.0.1 at 2019-12-05 23:10:44 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1102"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oGZvozTl/grhgcnqDSAY1eRHCpu12YibM1YVavv7N4ssNE8xF0fdq"], ["created_at", "2019-12-06 02:10:44.596844"], ["updated_at", "2019-12-06 02:10:44.596844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.599735"], ["last_sign_in_at", "2019-12-06 02:10:44.599735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.600399"], ["id", 1282]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.603971"], ["updated_at", "2019-12-06 02:10:44.603971"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yVMmB8.5R6Zc6Eb/bRHG1eT0pRap9SWvUV5PcFC8911i7OJb7Q9Gy"], ["created_at", "2019-12-06 02:10:44.613068"], ["updated_at", "2019-12-06 02:10:44.613068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.615956"], ["last_sign_in_at", "2019-12-06 02:10:44.615956"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.616601"], ["id", 1283]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.620766"], ["updated_at", "2019-12-06 02:10:44.620766"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IyjIk0nxJF4qGidXuDqyqOhfVs8F/TrwE3dEqNrn6T0iN3kDHl/My"], ["created_at", "2019-12-06 02:10:44.629779"], ["updated_at", "2019-12-06 02:10:44.629779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.632361"], ["last_sign_in_at", "2019-12-06 02:10:44.632361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.632876"], ["id", 1284]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DgIL3mSe0ffdzJWiBmAmZ.NNmjQYaY3pSbgE06mkqOjLqouo0G3tq"], ["created_at", "2019-12-06 02:10:44.643998"], ["updated_at", "2019-12-06 02:10:44.643998"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.646567"], ["last_sign_in_at", "2019-12-06 02:10:44.646567"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.647151"], ["id", 1285]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IMXkq1CCo2nUyizLLkEYTeKFKSJCJrS4bPUVQg/4ZS98Bh/0r1ddS"], ["created_at", "2019-12-06 02:10:44.658718"], ["updated_at", "2019-12-06 02:10:44.658718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.661881"], ["last_sign_in_at", "2019-12-06 02:10:44.661881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.662436"], ["id", 1286]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FdT87MECkUHKRs5GWdup0uECcm3xHO03E4zMpIFsf8YQy2S/TODrW"], ["created_at", "2019-12-06 02:10:44.674561"], ["updated_at", "2019-12-06 02:10:44.674561"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.677193"], ["updated_at", "2019-12-06 02:10:44.677193"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1105” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.680517"], ["last_sign_in_at", "2019-12-06 02:10:44.680517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.681046"], ["id", 1287]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1105"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1105], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:10:44.684908"], ["id", 1105]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1105 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b8538negox9KHRGXesnYNObDDMk9MC6Us9C99Ayr.H5HNndEMucwy"], ["created_at", "2019-12-06 02:10:44.693571"], ["updated_at", "2019-12-06 02:10:44.693571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.695904"], ["updated_at", "2019-12-06 02:10:44.695904"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1106” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.698382"], ["last_sign_in_at", "2019-12-06 02:10:44.698382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.698928"], ["id", 1288]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1106"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1106], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:10:44.702755"], ["id", 1106]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1106 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1f2kiHzaT2ilKOCsFIr47OiCKia9aHCmgQCSuPHslmg7UflYBNV8C"], ["created_at", "2019-12-06 02:10:44.712260"], ["updated_at", "2019-12-06 02:10:44.712260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.714560"], ["updated_at", "2019-12-06 02:10:44.714560"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1107” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.717277"], ["last_sign_in_at", "2019-12-06 02:10:44.717277"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.717808"], ["id", 1289]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1107"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1107], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E3GXRGkm6PDNXonJ6jJWRuDuqQTHVBtTnO8a7YSDig4j.HUxEo9c6"], ["created_at", "2019-12-06 02:10:44.732388"], ["updated_at", "2019-12-06 02:10:44.732388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.734663"], ["updated_at", "2019-12-06 02:10:44.734663"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1108” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.737067"], ["last_sign_in_at", "2019-12-06 02:10:44.737067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.737871"], ["id", 1290]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1108"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1108], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$euYPf7FN3aU7MgglsZI3.e/SBMWMDUEIYbEwz6KbwOLWvJWD/30BK"], ["created_at", "2019-12-06 02:10:44.752726"], ["updated_at", "2019-12-06 02:10:44.752726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.755462"], ["last_sign_in_at", "2019-12-06 02:10:44.755462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.756012"], ["id", 1291]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b.n/9goo44UtIR9YW0ZoFO44gxwYkGzt3j6E3rQafELmF.J3IdD4C"], ["created_at", "2019-12-06 02:10:44.766963"], ["updated_at", "2019-12-06 02:10:44.766963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.769283"], ["updated_at", "2019-12-06 02:10:44.769283"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1109” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.771143"], ["last_sign_in_at", "2019-12-06 02:10:44.771143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.771614"], ["id", 1292]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1109"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1109], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1109]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I14TJGNSflPhaVBAjaaY1OflNlswI5KoFDKGF9SI74lakaKhwwt86"], ["created_at", "2019-12-06 02:10:44.783069"], ["updated_at", "2019-12-06 02:10:44.783069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.785391"], ["updated_at", "2019-12-06 02:10:44.785391"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1110” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.787441"], ["last_sign_in_at", "2019-12-06 02:10:44.787441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.788120"], ["id", 1293]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1110"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1110], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1110]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fkPPGP2JfPZ/XkuM1s8sMeUru4cOrBxhi4iln572PdqLHonpR0bxu"], ["created_at", "2019-12-06 02:10:44.800095"], ["updated_at", "2019-12-06 02:10:44.800095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.802290"], ["updated_at", "2019-12-06 02:10:44.802290"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1111” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.804058"], ["last_sign_in_at", "2019-12-06 02:10:44.804058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.804548"], ["id", 1294]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1111"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JbKVlAy4NONvPKpbCdLbD.Z/9oq4YLzdfZhC9SOB6Prt5PgWt6zZK"], ["created_at", "2019-12-06 02:10:44.814167"], ["updated_at", "2019-12-06 02:10:44.814167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.816323"], ["updated_at", "2019-12-06 02:10:44.816323"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1112” for 127.0.0.1 at 2019-12-05 23:10:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.818170"], ["last_sign_in_at", "2019-12-06 02:10:44.818170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.818677"], ["id", 1295]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1112"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$k459OawupB4CsWFCSSUK9.cBG1rAjC3y8geHNofeCLqYFA/YPxg86"], ["created_at", "2019-12-06 02:11:37.954021"], ["updated_at", "2019-12-06 02:11:37.954021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:37.962858"], ["updated_at", "2019-12-06 02:11:37.962858"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1113"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1113], ["LIMIT", 1]]
[1m[36mAppointment Load (1.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1113')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 151ms (Views: 106.9ms | ActiveRecord: 2.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$tAjFuGjsK8CZJ8bO0M8pPeb9qqLwU1QcT/XKthx0mE61C7POBBUCq"], ["created_at", "2019-12-06 02:11:38.124334"], ["updated_at", "2019-12-06 02:11:38.124334"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.126668"], ["updated_at", "2019-12-06 02:11:38.126668"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1114], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1297], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1297], ["room_id", 1114], ["created_at", "2019-12-06 02:11:38.162141"], ["updated_at", "2019-12-06 02:11:38.162141"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1114"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1114], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1114')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$V0J0pIbMfnF7XblGNryBmexI/tebEc4pPPH8qVaYmG3HIHIAbP7AG"], ["created_at", "2019-12-06 02:11:38.176043"], ["updated_at", "2019-12-06 02:11:38.176043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.178471"], ["updated_at", "2019-12-06 02:11:38.178471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1115], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1298], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1298], ["room_id", 1115], ["created_at", "2019-12-06 02:11:38.182307"], ["updated_at", "2019-12-06 02:11:38.182307"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1115"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1115], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1115')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$D0PeqQkFCi5mFc2emD565O8Jsx2l4o8cvuPjeWRGml5fobYD5SLKS"], ["created_at", "2019-12-06 02:11:38.192213"], ["updated_at", "2019-12-06 02:11:38.192213"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.194471"], ["updated_at", "2019-12-06 02:11:38.194471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1116], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1299], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1299], ["room_id", 1116], ["created_at", "2019-12-06 02:11:38.198433"], ["updated_at", "2019-12-06 02:11:38.198433"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1116"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1116], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1116')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xXgFw.pftcGHUT8rVj9gN.gLawr6EMafOEbGG.dJAkTVt57ktJumq"], ["created_at", "2019-12-06 02:11:38.242823"], ["updated_at", "2019-12-06 02:11:38.242823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.245287"], ["updated_at", "2019-12-06 02:11:38.245287"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1117], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1300], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1300], ["room_id", 1117], ["created_at", "2019-12-06 02:11:38.249267"], ["updated_at", "2019-12-06 02:11:38.249267"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1117"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1117], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1117')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 105ms (Views: 74.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TLBdOq2BOlmVFX2XYvipEOKeVKf30sua3HVZC3POTP.8ffHw/pE6."], ["created_at", "2019-12-06 02:11:38.814404"], ["updated_at", "2019-12-06 02:11:38.814404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.816397"], ["updated_at", "2019-12-06 02:11:38.816397"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.831975"], ["last_sign_in_at", "2019-12-06 02:11:38.831975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.832591"], ["id", 1301]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1118"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1118], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1301], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1301], ["room_id", 1118], ["created_at", "2019-12-06 02:11:38.848629"], ["updated_at", "2019-12-06 02:11:38.848629"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1118], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kLqdWrWRkvCVE6qWWupQVuwtxPJY4Ug4BUsvrHb9uxlyPMt5rGMgq"], ["created_at", "2019-12-06 02:11:38.857148"], ["updated_at", "2019-12-06 02:11:38.857148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.859435"], ["updated_at", "2019-12-06 02:11:38.859435"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.866572"], ["last_sign_in_at", "2019-12-06 02:11:38.866572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.867201"], ["id", 1302]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1119"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1119], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1302], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1302], ["room_id", 1119], ["created_at", "2019-12-06 02:11:38.872105"], ["updated_at", "2019-12-06 02:11:38.872105"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jf74N3HOzJCoZFI9gz8r7eycdR0uAvyP3aIwzPrKWHb9/yuR4rNfa"], ["created_at", "2019-12-06 02:11:38.880538"], ["updated_at", "2019-12-06 02:11:38.880538"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.882551"], ["updated_at", "2019-12-06 02:11:38.882551"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.884960"], ["last_sign_in_at", "2019-12-06 02:11:38.884960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.885606"], ["id", 1303]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1120"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1120], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ccz7J7pwJhv9/58l1O504uSCqHAoBzk2PZDZ4.UuK0rZC6j8oCroO"], ["created_at", "2019-12-06 02:11:38.894233"], ["updated_at", "2019-12-06 02:11:38.894233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.897301"], ["updated_at", "2019-12-06 02:11:38.897301"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.899528"], ["last_sign_in_at", "2019-12-06 02:11:38.899528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.900030"], ["id", 1304]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1121"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1HLs6rOMACYoxqjWFuQUHuqsSj.bpByFbjkvI1r/JsPvYhYLC21WO"], ["created_at", "2019-12-06 02:11:38.910219"], ["updated_at", "2019-12-06 02:11:38.910219"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.912850"], ["updated_at", "2019-12-06 02:11:38.912850"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1122], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1305], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1305], ["room_id", 1122], ["created_at", "2019-12-06 02:11:38.916903"], ["updated_at", "2019-12-06 02:11:38.916903"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1122” for 127.0.0.1 at 2019-12-05 23:11:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.919240"], ["last_sign_in_at", "2019-12-06 02:11:38.919240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.919754"], ["id", 1305]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1122"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1122], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1122')[0m
Rendered appointments/show.html.erb within layouts/application (21.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 352ms (Views: 334.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$AUlRXL.ab4OfXMxhuwC/.un42SRUO6jSa4AuA3yM2kBEBWUAVhypK"], ["created_at", "2019-12-06 02:11:39.281897"], ["updated_at", "2019-12-06 02:11:39.281897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.284250"], ["updated_at", "2019-12-06 02:11:39.284250"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1123], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1306], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1306], ["room_id", 1123], ["created_at", "2019-12-06 02:11:39.288828"], ["updated_at", "2019-12-06 02:11:39.288828"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1123], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1306], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1306], ["room_id", 1123], ["created_at", "2019-12-06 02:11:39.292432"], ["updated_at", "2019-12-06 02:11:39.292432"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.294881"], ["last_sign_in_at", "2019-12-06 02:11:39.294881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.295490"], ["id", 1306]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1306]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 35ms (Views: 4.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$i26XjUkmKMBYcHyznH.kWe6z/PXP.dvPPTHQIK7ALVMVfnaRiwjGy"], ["created_at", "2019-12-06 02:11:39.339687"], ["updated_at", "2019-12-06 02:11:39.339687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.342039"], ["updated_at", "2019-12-06 02:11:39.342039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1124], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1307], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1307], ["room_id", 1124], ["created_at", "2019-12-06 02:11:39.346880"], ["updated_at", "2019-12-06 02:11:39.346880"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1124], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1307], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1307], ["room_id", 1124], ["created_at", "2019-12-06 02:11:39.350866"], ["updated_at", "2019-12-06 02:11:39.350866"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.353161"], ["last_sign_in_at", "2019-12-06 02:11:39.353161"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.353708"], ["id", 1307]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1307]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$P/E2.YoVzSWwuV.TRwoohuXzweWlC5GsVr5naI8f0XJQ8Iiz1rqvO"], ["created_at", "2019-12-06 02:11:39.367881"], ["updated_at", "2019-12-06 02:11:39.367881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.370109"], ["updated_at", "2019-12-06 02:11:39.370109"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1125], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1308], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1308], ["room_id", 1125], ["created_at", "2019-12-06 02:11:39.374437"], ["updated_at", "2019-12-06 02:11:39.374437"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/589” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.376719"], ["last_sign_in_at", "2019-12-06 02:11:39.376719"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.377249"], ["id", 1308]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"589"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 589], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 589]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zRWlFpy2GSuYjGINvyz98uTrlm7v.kFCb0EiP7.5wpcGnZQXBH83K"], ["created_at", "2019-12-06 02:11:39.391931"], ["updated_at", "2019-12-06 02:11:39.391931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.394248"], ["last_sign_in_at", "2019-12-06 02:11:39.394248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.394945"], ["id", 1309]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m9fdsupdmI512Vi9pimRquJKN5gINjUueBIlYOZV56cxt5mg0FNYu"], ["created_at", "2019-12-06 02:11:39.439445"], ["updated_at", "2019-12-06 02:11:39.439445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.441668"], ["updated_at", "2019-12-06 02:11:39.441668"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1126], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1310], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1310], ["room_id", 1126], ["created_at", "2019-12-06 02:11:39.446405"], ["updated_at", "2019-12-06 02:11:39.446405"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1126], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1310], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1310], ["room_id", 1126], ["created_at", "2019-12-06 02:11:39.450762"], ["updated_at", "2019-12-06 02:11:39.450762"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.453337"], ["last_sign_in_at", "2019-12-06 02:11:39.453337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.453895"], ["id", 1310]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1126], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1310], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1310], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uW7TN.h/pmXUUK.m5pbTgOMiV5PKw4u4PioA9suoOtNGaxkVt/uyW"], ["created_at", "2019-12-06 02:11:39.470353"], ["updated_at", "2019-12-06 02:11:39.470353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.473102"], ["updated_at", "2019-12-06 02:11:39.473102"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1127], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1311], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1311], ["room_id", 1127], ["created_at", "2019-12-06 02:11:39.478660"], ["updated_at", "2019-12-06 02:11:39.478660"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1127], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1311], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1311], ["room_id", 1127], ["created_at", "2019-12-06 02:11:39.484309"], ["updated_at", "2019-12-06 02:11:39.484309"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.488127"], ["last_sign_in_at", "2019-12-06 02:11:39.488127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.489553"], ["id", 1311]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1127], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1311], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1311], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jWziaPbgqS9FPPxL6aGjTe4u3kBuLbSPOQ8ue6PBPTbZDYGJ.Yoca"], ["created_at", "2019-12-06 02:11:39.508670"], ["updated_at", "2019-12-06 02:11:39.508670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.512528"], ["updated_at", "2019-12-06 02:11:39.512528"]]
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1128], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1312], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1312], ["room_id", 1128], ["created_at", "2019-12-06 02:11:39.517960"], ["updated_at", "2019-12-06 02:11:39.517960"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1128], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1312], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1312], ["room_id", 1128], ["created_at", "2019-12-06 02:11:39.523764"], ["updated_at", "2019-12-06 02:11:39.523764"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.526949"], ["last_sign_in_at", "2019-12-06 02:11:39.526949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.527622"], ["id", 1312]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sRXRyxnbAo.pzCQQenJYZuqUM.AIuNAH/QlriTe50hjyxpY2vRyXW"], ["created_at", "2019-12-06 02:11:39.542606"], ["updated_at", "2019-12-06 02:11:39.542606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.545859"], ["updated_at", "2019-12-06 02:11:39.545859"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1129], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1313], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1313], ["room_id", 1129], ["created_at", "2019-12-06 02:11:39.551640"], ["updated_at", "2019-12-06 02:11:39.551640"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1129], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1313], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1313], ["room_id", 1129], ["created_at", "2019-12-06 02:11:39.556494"], ["updated_at", "2019-12-06 02:11:39.556494"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.559556"], ["last_sign_in_at", "2019-12-06 02:11:39.559556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.560427"], ["id", 1313]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lz.xzMgwWRaxOMDWfQ1RQONxnHtluPjXE0.7Pyp9edlWKUWB1PcZS"], ["created_at", "2019-12-06 02:11:39.577815"], ["updated_at", "2019-12-06 02:11:39.577815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.581605"], ["last_sign_in_at", "2019-12-06 02:11:39.581605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.582179"], ["id", 1314]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (12.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 67ms (Views: 50.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.mlTKRa.4Z/u.3mtnaiH2O9eALH4ZuuZHSvT6lI.SjjQQlRtcWl.u"], ["created_at", "2019-12-06 02:11:39.662932"], ["updated_at", "2019-12-06 02:11:39.662932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.665528"], ["last_sign_in_at", "2019-12-06 02:11:39.665528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.666601"], ["id", 1315]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RvbRtmRupJnadirAzLqZRuhiSS19NPp5NOI7eaED4erBqsuVRQOne"], ["created_at", "2019-12-06 02:11:39.678005"], ["updated_at", "2019-12-06 02:11:39.678005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.680704"], ["last_sign_in_at", "2019-12-06 02:11:39.680704"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.681199"], ["id", 1316]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D04DzZz32nBl5J7BoayjIearR3IMbC63DXPeSpMAhWHvSmnn5hs4u"], ["created_at", "2019-12-06 02:11:39.709765"], ["updated_at", "2019-12-06 02:11:39.709765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.712778"], ["last_sign_in_at", "2019-12-06 02:11:39.712778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.713317"], ["id", 1317]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (6.4ms)
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6yP13t/Tm3aXw6WRHMPXK.hFHWMNAUEJ1jsuO51sy2lLv9T9WdBvu"], ["created_at", "2019-12-06 02:11:39.743370"], ["updated_at", "2019-12-06 02:11:39.743370"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.745673"], ["updated_at", "2019-12-06 02:11:39.745673"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1130” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.747776"], ["last_sign_in_at", "2019-12-06 02:11:39.747776"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.748264"], ["id", 1318]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1130"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1130], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0ln6/90R./sP/VKobfZmNeV6XH1DMQT1y7k/AVdLYaCyV5pvrXZWe"], ["created_at", "2019-12-06 02:11:39.775158"], ["updated_at", "2019-12-06 02:11:39.775158"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.777606"], ["updated_at", "2019-12-06 02:11:39.777606"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1131” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.780064"], ["last_sign_in_at", "2019-12-06 02:11:39.780064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.780810"], ["id", 1319]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1131"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1131], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.790527"], ["updated_at", "2019-12-06 02:11:39.790527"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1132” for 127.0.0.1 at 2019-12-05 23:11:39 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1132"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8FijOgIjZDhJpn1adtJsEeGkdt8jsx.8qjx5d0Q6ovAM2BRzA.eri"], ["created_at", "2019-12-06 02:11:39.801464"], ["updated_at", "2019-12-06 02:11:39.801464"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.803733"], ["updated_at", "2019-12-06 02:11:39.803733"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1133/edit” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.805746"], ["last_sign_in_at", "2019-12-06 02:11:39.805746"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.806428"], ["id", 1320]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1133"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1133], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G3lYAvfB/zZe.2CXXRh/FeYWw7Av448GzUAMOzFaN6ZK2uiufwafS"], ["created_at", "2019-12-06 02:11:39.834609"], ["updated_at", "2019-12-06 02:11:39.834609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.836820"], ["updated_at", "2019-12-06 02:11:39.836820"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1134/edit” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.838867"], ["last_sign_in_at", "2019-12-06 02:11:39.838867"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.839506"], ["id", 1321]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1134"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1134], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.851751"], ["updated_at", "2019-12-06 02:11:39.851751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1135” for 127.0.0.1 at 2019-12-05 23:11:39 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1135"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TCg0AfFQJtEVSFrBXXWSw..HPz1YhVVfOLz6bVq7FzXi45xCDfW7q"], ["created_at", "2019-12-06 02:11:39.864057"], ["updated_at", "2019-12-06 02:11:39.864057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.866596"], ["last_sign_in_at", "2019-12-06 02:11:39.866596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.867094"], ["id", 1322]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.871205"], ["updated_at", "2019-12-06 02:11:39.871205"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jjdCDGVyEtZd30rMG.y31evEpmzR5.8J3ngtpJ.FrxSy2KPB7hhA."], ["created_at", "2019-12-06 02:11:39.880206"], ["updated_at", "2019-12-06 02:11:39.880206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.882893"], ["last_sign_in_at", "2019-12-06 02:11:39.882893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.883407"], ["id", 1323]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.886541"], ["updated_at", "2019-12-06 02:11:39.886541"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4dAl.2mOTz3h0akXb45ZYOuMg0ym9Oed7cX46iMWVcdIsrKzoqxj2"], ["created_at", "2019-12-06 02:11:39.895583"], ["updated_at", "2019-12-06 02:11:39.895583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.898210"], ["last_sign_in_at", "2019-12-06 02:11:39.898210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.898695"], ["id", 1324]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LWheihz4.zUCHv.yDmZFJOUgUbfyvS6ZGIxIWIglVDwdZloO/LssG"], ["created_at", "2019-12-06 02:11:39.910248"], ["updated_at", "2019-12-06 02:11:39.910248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.913281"], ["last_sign_in_at", "2019-12-06 02:11:39.913281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.913799"], ["id", 1325]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m7kQUJcq5SmFDfcV0o6ExeZsWUOHOmuctNGTv.MTX3nYC0GP88C.i"], ["created_at", "2019-12-06 02:11:39.924909"], ["updated_at", "2019-12-06 02:11:39.924909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.927529"], ["last_sign_in_at", "2019-12-06 02:11:39.927529"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.928260"], ["id", 1326]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CnZR4XrdjQLYbP7XCGGThO0ncFQu3n6D07246AA2hx7LjWLbBmb66"], ["created_at", "2019-12-06 02:11:39.939765"], ["updated_at", "2019-12-06 02:11:39.939765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.942038"], ["updated_at", "2019-12-06 02:11:39.942038"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1138” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.944449"], ["last_sign_in_at", "2019-12-06 02:11:39.944449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.945176"], ["id", 1327]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1138"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1138], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:11:39.949127"], ["id", 1138]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1138 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f5bgm.48eVJ6UDjsCTv9ve91Qqs6eAx30gaUdoFLX8AAFfnrayvjK"], ["created_at", "2019-12-06 02:11:39.957528"], ["updated_at", "2019-12-06 02:11:39.957528"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.959732"], ["updated_at", "2019-12-06 02:11:39.959732"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1139” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.962856"], ["last_sign_in_at", "2019-12-06 02:11:39.962856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.963446"], ["id", 1328]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1139"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1139], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:11:39.967321"], ["id", 1139]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1139 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bZmub7FMgwAzDuvj.lUZOenVP8t27oo0sdQYPDNZ5XANkJxbnfoHG"], ["created_at", "2019-12-06 02:11:39.975765"], ["updated_at", "2019-12-06 02:11:39.975765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.978485"], ["updated_at", "2019-12-06 02:11:39.978485"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1140” for 127.0.0.1 at 2019-12-05 23:11:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.981309"], ["last_sign_in_at", "2019-12-06 02:11:39.981309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.981877"], ["id", 1329]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1140"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1140], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uIblYLhcSpN17AvAOV13duZDfWOVCJzOaE.U4woulNdGyJwTVCy3u"], ["created_at", "2019-12-06 02:11:39.996433"], ["updated_at", "2019-12-06 02:11:39.996433"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.999181"], ["updated_at", "2019-12-06 02:11:39.999181"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1141” for 127.0.0.1 at 2019-12-05 23:11:40 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.002556"], ["last_sign_in_at", "2019-12-06 02:11:40.002556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.003120"], ["id", 1330]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1141"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1141], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iASVVQ3U38/FTG6YLJgY9.uHELzQ6AJJtbL85nqFwEpieQoNEJLMa"], ["created_at", "2019-12-06 02:11:40.017877"], ["updated_at", "2019-12-06 02:11:40.017877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:40 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.020533"], ["last_sign_in_at", "2019-12-06 02:11:40.020533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.021045"], ["id", 1331]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BzkU0KHt4wjbUcx4UTD0BeMNYK50ybejO8nTzujI7g.YJ8oKAeBUS"], ["created_at", "2019-12-06 02:11:40.032778"], ["updated_at", "2019-12-06 02:11:40.032778"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.035121"], ["updated_at", "2019-12-06 02:11:40.035121"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1142” for 127.0.0.1 at 2019-12-05 23:11:40 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.037010"], ["last_sign_in_at", "2019-12-06 02:11:40.037010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.037510"], ["id", 1332]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1142"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1142], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1142]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yaYq846a95iPG4jCFsPxJeszKqtZlumeYsEXZEg9E5PO.SneKCYMq"], ["created_at", "2019-12-06 02:11:40.048907"], ["updated_at", "2019-12-06 02:11:40.048907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.051230"], ["updated_at", "2019-12-06 02:11:40.051230"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1143” for 127.0.0.1 at 2019-12-05 23:11:40 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.053625"], ["last_sign_in_at", "2019-12-06 02:11:40.053625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.054305"], ["id", 1333]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1143"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1143], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1143]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LvBg8pz56gKQGczt5hM.7OW4oz5b8TgB1Iitq2beUANTnZXrV65ce"], ["created_at", "2019-12-06 02:11:40.067350"], ["updated_at", "2019-12-06 02:11:40.067350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.069670"], ["updated_at", "2019-12-06 02:11:40.069670"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1144” for 127.0.0.1 at 2019-12-05 23:11:40 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.075634"], ["last_sign_in_at", "2019-12-06 02:11:40.075634"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.076162"], ["id", 1334]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1144"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pXJ2p2bUpiW/pDTtjudp/eUoTaI4Sb84EeFeZcA5hrEYCB1gluVPC"], ["created_at", "2019-12-06 02:11:40.085825"], ["updated_at", "2019-12-06 02:11:40.085825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.088011"], ["updated_at", "2019-12-06 02:11:40.088011"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1145” for 127.0.0.1 at 2019-12-05 23:11:40 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.089852"], ["last_sign_in_at", "2019-12-06 02:11:40.089852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.090336"], ["id", 1335]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1145"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xaKhFKvhpWntrUpV68bWR.ZqH2geo1mrOgFy96CqFBBBQJl2GpRS6"], ["created_at", "2019-12-06 02:12:27.013123"], ["updated_at", "2019-12-06 02:12:27.013123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.021834"], ["updated_at", "2019-12-06 02:12:27.021834"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1146"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1146], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1146')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 152ms (Views: 108.5ms | ActiveRecord: 2.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$deHAm3D98sKlkntnpeb3QOzZEc1sWrWwIAwOzMefaicFYePCGDMrW"], ["created_at", "2019-12-06 02:12:27.184297"], ["updated_at", "2019-12-06 02:12:27.184297"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.186846"], ["updated_at", "2019-12-06 02:12:27.186846"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1147], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1337], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1337], ["room_id", 1147], ["created_at", "2019-12-06 02:12:27.226412"], ["updated_at", "2019-12-06 02:12:27.226412"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1147"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1147], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1147')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0LSZ1.TUUnM.SmuDxGMZ5eaA9nXDcago1PvPC59C0lGqBp.Hxhv8K"], ["created_at", "2019-12-06 02:12:27.240469"], ["updated_at", "2019-12-06 02:12:27.240469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.242645"], ["updated_at", "2019-12-06 02:12:27.242645"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1148], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1338], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1338], ["room_id", 1148], ["created_at", "2019-12-06 02:12:27.247683"], ["updated_at", "2019-12-06 02:12:27.247683"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1148"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1148], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1148')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$c/x7rQLZhfn9XpFQUt8hSOY3F0h6p9aKpeGg3IhpZAkwHUWnUzoPu"], ["created_at", "2019-12-06 02:12:27.260211"], ["updated_at", "2019-12-06 02:12:27.260211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.262619"], ["updated_at", "2019-12-06 02:12:27.262619"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1149], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1339], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1339], ["room_id", 1149], ["created_at", "2019-12-06 02:12:27.267437"], ["updated_at", "2019-12-06 02:12:27.267437"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1149"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1149], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1149')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$g7hW99bbAQ2ZHeWuih3kF.YXGr89pWanBpczK8qcfLRtlATICodmG"], ["created_at", "2019-12-06 02:12:27.314890"], ["updated_at", "2019-12-06 02:12:27.314890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.316929"], ["updated_at", "2019-12-06 02:12:27.316929"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1150], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1340], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1340], ["room_id", 1150], ["created_at", "2019-12-06 02:12:27.320696"], ["updated_at", "2019-12-06 02:12:27.320696"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1150"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1150], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1150')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 110ms (Views: 79.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0owWbsdhmvvyUaoW/rkx/OPpWPekUFi.LMlTG5Se7V3I7NPbtEoPq"], ["created_at", "2019-12-06 02:12:27.899062"], ["updated_at", "2019-12-06 02:12:27.899062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.901076"], ["updated_at", "2019-12-06 02:12:27.901076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.916557"], ["last_sign_in_at", "2019-12-06 02:12:27.916557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.917194"], ["id", 1341]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1151"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1151], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1341], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1341], ["room_id", 1151], ["created_at", "2019-12-06 02:12:27.937793"], ["updated_at", "2019-12-06 02:12:27.937793"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1151], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yt5l8iux5.HYyuzEnITo0.tMHVFEKP1kot0Ys4YIXoEuZaxo./L9u"], ["created_at", "2019-12-06 02:12:27.946336"], ["updated_at", "2019-12-06 02:12:27.946336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.948661"], ["updated_at", "2019-12-06 02:12:27.948661"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.951023"], ["last_sign_in_at", "2019-12-06 02:12:27.951023"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.951601"], ["id", 1342]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1152"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1152], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1342], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1342], ["room_id", 1152], ["created_at", "2019-12-06 02:12:27.956144"], ["updated_at", "2019-12-06 02:12:27.956144"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fmUa0SHEl99CHIxfg4wYEugNVrILan3xLnVFaLjPKEwkmgsDRi9hm"], ["created_at", "2019-12-06 02:12:27.964655"], ["updated_at", "2019-12-06 02:12:27.964655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.966706"], ["updated_at", "2019-12-06 02:12:27.966706"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.968872"], ["last_sign_in_at", "2019-12-06 02:12:27.968872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.969370"], ["id", 1343]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1153"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1153], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dGoFggFhJ3mhcmWNh70oqehAg2Iu8KYE9aAAXFaVSXP0hplaPdmQa"], ["created_at", "2019-12-06 02:12:27.978181"], ["updated_at", "2019-12-06 02:12:27.978181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.981056"], ["updated_at", "2019-12-06 02:12:27.981056"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.983771"], ["last_sign_in_at", "2019-12-06 02:12:27.983771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.984295"], ["id", 1344]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1154"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/9mFrFd5KlaMR6z7u0CC/OLHD6dvbRkdtIKRi5cQ1ojCVt/YzyRja"], ["created_at", "2019-12-06 02:12:27.994032"], ["updated_at", "2019-12-06 02:12:27.994032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.996513"], ["updated_at", "2019-12-06 02:12:27.996513"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1155], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1345], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1345], ["room_id", 1155], ["created_at", "2019-12-06 02:12:28.001116"], ["updated_at", "2019-12-06 02:12:28.001116"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1155” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.003619"], ["last_sign_in_at", "2019-12-06 02:12:28.003619"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.004102"], ["id", 1345]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1155"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1155], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1155')[0m
Rendered appointments/show.html.erb within layouts/application (20.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 390ms (Views: 373.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Vc49cuz.Nl7UPXKEHTQXf.ktPXuttsXbMfG/ED9JGWbF7EwoZmzmO"], ["created_at", "2019-12-06 02:12:28.404509"], ["updated_at", "2019-12-06 02:12:28.404509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.406820"], ["updated_at", "2019-12-06 02:12:28.406820"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1156], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1346], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1346], ["room_id", 1156], ["created_at", "2019-12-06 02:12:28.411483"], ["updated_at", "2019-12-06 02:12:28.411483"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1156], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1346], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1346], ["room_id", 1156], ["created_at", "2019-12-06 02:12:28.415577"], ["updated_at", "2019-12-06 02:12:28.415577"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.417726"], ["last_sign_in_at", "2019-12-06 02:12:28.417726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.418234"], ["id", 1346]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1346]] Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KtUP62dfRkj6YunzI3Oy/eHt.sYk.6fiJPcQrFZWv10CnSwLphBLC"], ["created_at", "2019-12-06 02:12:28.461296"], ["updated_at", "2019-12-06 02:12:28.461296"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.464041"], ["updated_at", "2019-12-06 02:12:28.464041"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1157], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1347], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1347], ["room_id", 1157], ["created_at", "2019-12-06 02:12:28.468233"], ["updated_at", "2019-12-06 02:12:28.468233"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1157], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1347], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1347], ["room_id", 1157], ["created_at", "2019-12-06 02:12:28.472261"], ["updated_at", "2019-12-06 02:12:28.472261"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.474668"], ["last_sign_in_at", "2019-12-06 02:12:28.474668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.475169"], ["id", 1347]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1347]] Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xPmphqMhY344TiT2sZ6/Sux3R386AugR8brWnQf9POMw2VZbO5M62"], ["created_at", "2019-12-06 02:12:28.488648"], ["updated_at", "2019-12-06 02:12:28.488648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.490904"], ["updated_at", "2019-12-06 02:12:28.490904"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1158], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1348], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1348], ["room_id", 1158], ["created_at", "2019-12-06 02:12:28.495123"], ["updated_at", "2019-12-06 02:12:28.495123"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/609” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.497754"], ["last_sign_in_at", "2019-12-06 02:12:28.497754"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.498334"], ["id", 1348]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"609"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 609], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 609]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8LZa5sH7jqy5hOQkDjOnmehyTHueJsUjMLECeWwyrA/xaD4Yyu7Ya"], ["created_at", "2019-12-06 02:12:28.512051"], ["updated_at", "2019-12-06 02:12:28.512051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.515045"], ["last_sign_in_at", "2019-12-06 02:12:28.515045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.515772"], ["id", 1349]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.4ms)
Completed 200 OK in 37ms (Views: 20.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JLRNQpEmWMVLMHj2AIe8t.73/zTJz2KjO.qCJ5IcPJSuhvoLsL8l6"], ["created_at", "2019-12-06 02:12:28.561155"], ["updated_at", "2019-12-06 02:12:28.561155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.563509"], ["updated_at", "2019-12-06 02:12:28.563509"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1159], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1350], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1350], ["room_id", 1159], ["created_at", "2019-12-06 02:12:28.567751"], ["updated_at", "2019-12-06 02:12:28.567751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1159], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1350], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1350], ["room_id", 1159], ["created_at", "2019-12-06 02:12:28.571274"], ["updated_at", "2019-12-06 02:12:28.571274"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.573492"], ["last_sign_in_at", "2019-12-06 02:12:28.573492"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.573981"], ["id", 1350]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1159], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1350], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1350], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Yxp0hV4ags8sXIIh7d0JzezsrgP3ZtXHQAaB8gk5afBKeWSufzG8e"], ["created_at", "2019-12-06 02:12:28.586915"], ["updated_at", "2019-12-06 02:12:28.586915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.589369"], ["updated_at", "2019-12-06 02:12:28.589369"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1160], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1351], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1351], ["room_id", 1160], ["created_at", "2019-12-06 02:12:28.593868"], ["updated_at", "2019-12-06 02:12:28.593868"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1160], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1351], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1351], ["room_id", 1160], ["created_at", "2019-12-06 02:12:28.598444"], ["updated_at", "2019-12-06 02:12:28.598444"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.600711"], ["last_sign_in_at", "2019-12-06 02:12:28.600711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.601240"], ["id", 1351]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1160], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1351], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1351], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WOKlkiDn320jQjZs0YUG1eBy0JfEfyWPYD17Shs52Easbyxh9OR/q"], ["created_at", "2019-12-06 02:12:28.615910"], ["updated_at", "2019-12-06 02:12:28.615910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.618141"], ["updated_at", "2019-12-06 02:12:28.618141"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1161], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1352], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1352], ["room_id", 1161], ["created_at", "2019-12-06 02:12:28.622672"], ["updated_at", "2019-12-06 02:12:28.622672"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1161], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1352], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1352], ["room_id", 1161], ["created_at", "2019-12-06 02:12:28.626484"], ["updated_at", "2019-12-06 02:12:28.626484"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.628880"], ["last_sign_in_at", "2019-12-06 02:12:28.628880"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.629776"], ["id", 1352]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d1EHZeXeSOG0Ib0Hd0wOW.BAkh8Av918/1GJd91NjTfCmmciCtqGa"], ["created_at", "2019-12-06 02:12:28.641115"], ["updated_at", "2019-12-06 02:12:28.641115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.643098"], ["updated_at", "2019-12-06 02:12:28.643098"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1162], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1353], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1353], ["room_id", 1162], ["created_at", "2019-12-06 02:12:28.647474"], ["updated_at", "2019-12-06 02:12:28.647474"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1162], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1353], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1353], ["room_id", 1162], ["created_at", "2019-12-06 02:12:28.651346"], ["updated_at", "2019-12-06 02:12:28.651346"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.653488"], ["last_sign_in_at", "2019-12-06 02:12:28.653488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.654036"], ["id", 1353]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2L4oJEjIUvnY5iDZJjS2DuMu2Y6e7.NsVobkRxQDdZyx0LGJsOUtS"], ["created_at", "2019-12-06 02:12:28.667423"], ["updated_at", "2019-12-06 02:12:28.667423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.669860"], ["last_sign_in_at", "2019-12-06 02:12:28.669860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.670591"], ["id", 1354]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 62ms (Views: 46.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DDP9hY4OQtwajF0FPfUhXOA0Y8fuU2/NNvDdHxYsv83mF68XPi5N."], ["created_at", "2019-12-06 02:12:28.744364"], ["updated_at", "2019-12-06 02:12:28.744364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.747020"], ["last_sign_in_at", "2019-12-06 02:12:28.747020"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.747555"], ["id", 1355]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b6AzRNFym2B5dSJsSkth8uTVJAA7hEncutrtRsyA.lc2oZ.L9.DQm"], ["created_at", "2019-12-06 02:12:28.757856"], ["updated_at", "2019-12-06 02:12:28.757856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.761029"], ["last_sign_in_at", "2019-12-06 02:12:28.761029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.761617"], ["id", 1356]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/YUp58x1yPq5XX9UNTlj.OTMS6a.kPL/JKzoZ8/DpMf.EVsqC7/32"], ["created_at", "2019-12-06 02:12:28.790129"], ["updated_at", "2019-12-06 02:12:28.790129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.792469"], ["last_sign_in_at", "2019-12-06 02:12:28.792469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.792989"], ["id", 1357]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/dgw3BVKxC/QmKoj5N57CuljZXLk/sLJ.2WwmPMZZgx3vg6zsaT2i"], ["created_at", "2019-12-06 02:12:28.815070"], ["updated_at", "2019-12-06 02:12:28.815070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.817311"], ["updated_at", "2019-12-06 02:12:28.817311"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1163” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.819232"], ["last_sign_in_at", "2019-12-06 02:12:28.819232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.819678"], ["id", 1358]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1163"}
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1163], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1XgO7mlqaDaE8SiR7vLItOgjavfmj5dwvbWgOz19GS/YHFJJEBqjm"], ["created_at", "2019-12-06 02:12:28.846819"], ["updated_at", "2019-12-06 02:12:28.846819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.849140"], ["updated_at", "2019-12-06 02:12:28.849140"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1164” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.851604"], ["last_sign_in_at", "2019-12-06 02:12:28.851604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.852147"], ["id", 1359]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1164"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1164], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.861945"], ["updated_at", "2019-12-06 02:12:28.861945"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1165” for 127.0.0.1 at 2019-12-05 23:12:28 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1165"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m04T7yJHIPT3VPdMpmvRXOn2.0.bqk4KSh/qIXi/l99qlyWfVAGW6"], ["created_at", "2019-12-06 02:12:28.872790"], ["updated_at", "2019-12-06 02:12:28.872790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.874977"], ["updated_at", "2019-12-06 02:12:28.874977"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1166/edit” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.876990"], ["last_sign_in_at", "2019-12-06 02:12:28.876990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.877511"], ["id", 1360]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1166"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1166], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UZApblYawp0mRM03k0pzDejzjMOEA65YVzvPteZ2zmkoBdmZDcNKC"], ["created_at", "2019-12-06 02:12:28.905267"], ["updated_at", "2019-12-06 02:12:28.905267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.907423"], ["updated_at", "2019-12-06 02:12:28.907423"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1167/edit” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.909408"], ["last_sign_in_at", "2019-12-06 02:12:28.909408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.909916"], ["id", 1361]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1167"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1167], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.928566"], ["updated_at", "2019-12-06 02:12:28.928566"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1168” for 127.0.0.1 at 2019-12-05 23:12:28 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1168"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qWJRTZ8SztR61Kh627tXl.TyH.AbUZRhYd.kKuodum4kYj.LGpk2u"], ["created_at", "2019-12-06 02:12:28.940791"], ["updated_at", "2019-12-06 02:12:28.940791"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.943338"], ["last_sign_in_at", "2019-12-06 02:12:28.943338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.943851"], ["id", 1362]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.948398"], ["updated_at", "2019-12-06 02:12:28.948398"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Wa01L8nMh19NjbjlYgYDpOUY4yWpOAIv8eV363QmthPyYi0ELCeK6"], ["created_at", "2019-12-06 02:12:28.957275"], ["updated_at", "2019-12-06 02:12:28.957275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.959900"], ["last_sign_in_at", "2019-12-06 02:12:28.959900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.960397"], ["id", 1363]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.963896"], ["updated_at", "2019-12-06 02:12:28.963896"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ANVJYhXQDknbeDFmUqhWWOp1X.Z.czI50CNJ49QQxCGwmjSdHFFvq"], ["created_at", "2019-12-06 02:12:28.972312"], ["updated_at", "2019-12-06 02:12:28.972312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.974854"], ["last_sign_in_at", "2019-12-06 02:12:28.974854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.975351"], ["id", 1364]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RnpaS3CqvlHjaPHiZ11py.Oxc2pJzGgd8Cgx8gBGSJ0vLy1tnGO4C"], ["created_at", "2019-12-06 02:12:28.987547"], ["updated_at", "2019-12-06 02:12:28.987547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.990734"], ["last_sign_in_at", "2019-12-06 02:12:28.990734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.991407"], ["id", 1365]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KPtRIfoZArsrRISnv1X7JeFwkVWTf2G8jZt0kzF//GhXVFygD/zHO"], ["created_at", "2019-12-06 02:12:29.003299"], ["updated_at", "2019-12-06 02:12:29.003299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.005772"], ["last_sign_in_at", "2019-12-06 02:12:29.005772"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.006255"], ["id", 1366]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dh6CrkWg84D47AxAgiwwWeDcl50IFae5WKFesKwekVnG0gnkIpYCm"], ["created_at", "2019-12-06 02:12:29.017907"], ["updated_at", "2019-12-06 02:12:29.017907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.020256"], ["updated_at", "2019-12-06 02:12:29.020256"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1171” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.022646"], ["last_sign_in_at", "2019-12-06 02:12:29.022646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.023139"], ["id", 1367]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1171"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1171], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:12:29.026930"], ["id", 1171]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1171 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZyaErci80YRqMlQO8a6ISu7P3.UjQcVbw4lGEpI.aLOPS4iSgDtku"], ["created_at", "2019-12-06 02:12:29.035610"], ["updated_at", "2019-12-06 02:12:29.035610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.037849"], ["updated_at", "2019-12-06 02:12:29.037849"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1172” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.040593"], ["last_sign_in_at", "2019-12-06 02:12:29.040593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.041116"], ["id", 1368]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1172"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1172], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:12:29.044921"], ["id", 1172]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1172 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EEEt4tDp4VOaKVuV2A/HtuJEh4zajXi7iXiO9OTCTK5bP.AG1TBVC"], ["created_at", "2019-12-06 02:12:29.054682"], ["updated_at", "2019-12-06 02:12:29.054682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.056836"], ["updated_at", "2019-12-06 02:12:29.056836"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1173” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.059309"], ["last_sign_in_at", "2019-12-06 02:12:29.059309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.059922"], ["id", 1369]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1173"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1173], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hhbg5Hr/bncw41vGEq9DduyilOno8So.yVZfw94NEqQk0wSVi6L5m"], ["created_at", "2019-12-06 02:12:29.074073"], ["updated_at", "2019-12-06 02:12:29.074073"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.076351"], ["updated_at", "2019-12-06 02:12:29.076351"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1174” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.078816"], ["last_sign_in_at", "2019-12-06 02:12:29.078816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.079741"], ["id", 1370]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1174"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1174], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$janA5.ZPZRrWNboX1h6UaeO5I5agD4piLASsUoltVLTu2bfW9LViu"], ["created_at", "2019-12-06 02:12:29.093837"], ["updated_at", "2019-12-06 02:12:29.093837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.096743"], ["last_sign_in_at", "2019-12-06 02:12:29.096743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.097429"], ["id", 1371]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wvzDQGcYsA/2LvsWNAYDquY.lla4T/zDNyedFOgCbtFBOEp1bDD9K"], ["created_at", "2019-12-06 02:12:29.107801"], ["updated_at", "2019-12-06 02:12:29.107801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.110190"], ["updated_at", "2019-12-06 02:12:29.110190"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1175” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.112137"], ["last_sign_in_at", "2019-12-06 02:12:29.112137"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.112867"], ["id", 1372]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1175"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1175], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1175]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a5bNY/9mszizPV5c2qMLIulzVbylSpah3p8E0erRCYStmHf17uJhW"], ["created_at", "2019-12-06 02:12:29.124018"], ["updated_at", "2019-12-06 02:12:29.124018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.126178"], ["updated_at", "2019-12-06 02:12:29.126178"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1176” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.128131"], ["last_sign_in_at", "2019-12-06 02:12:29.128131"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.128620"], ["id", 1373]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1176"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1176], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1176]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OTiXA8EZ6STjagRARSv/UeqguXMS5veuLTQz.yhpkRNyBqAuPkkwi"], ["created_at", "2019-12-06 02:12:29.141238"], ["updated_at", "2019-12-06 02:12:29.141238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.143480"], ["updated_at", "2019-12-06 02:12:29.143480"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1177” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.145330"], ["last_sign_in_at", "2019-12-06 02:12:29.145330"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.145910"], ["id", 1374]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1177"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t/gbd1.ANVfEluu1vN75zey.9hEb7H8WzjWUC1ScqG77.3cJbMpwO"], ["created_at", "2019-12-06 02:12:29.155220"], ["updated_at", "2019-12-06 02:12:29.155220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.157422"], ["updated_at", "2019-12-06 02:12:29.157422"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1178” for 127.0.0.1 at 2019-12-05 23:12:29 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.159326"], ["last_sign_in_at", "2019-12-06 02:12:29.159326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.159904"], ["id", 1375]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1178"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$DTaZwIWkDxwekmTXx7pC9O/o340nRJHhH/b8pMhiH2AbCK4AIul8G"], ["created_at", "2019-12-06 02:13:26.292676"], ["updated_at", "2019-12-06 02:13:26.292676"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.301328"], ["updated_at", "2019-12-06 02:13:26.301328"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1179"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1179], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1179')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 150ms (Views: 107.2ms | ActiveRecord: 2.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$tYavP1OE3ORjBYcVTSoC1.s2k04T.poh1RaG5fLmemnmOO7SUy0/q"], ["created_at", "2019-12-06 02:13:26.462374"], ["updated_at", "2019-12-06 02:13:26.462374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.465172"], ["updated_at", "2019-12-06 02:13:26.465172"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1180], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1377], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1377], ["room_id", 1180], ["created_at", "2019-12-06 02:13:26.502701"], ["updated_at", "2019-12-06 02:13:26.502701"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1180"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1180], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1180')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$8Rz/w/ULZGYyuiae2LRgxu7q2f9ypS7MQ6fptsckA7A70.YM19TzG"], ["created_at", "2019-12-06 02:13:26.517203"], ["updated_at", "2019-12-06 02:13:26.517203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.519494"], ["updated_at", "2019-12-06 02:13:26.519494"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1181], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1378], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1378], ["room_id", 1181], ["created_at", "2019-12-06 02:13:26.523758"], ["updated_at", "2019-12-06 02:13:26.523758"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1181"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1181], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1181')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yHnATUhizpvjD0OHcEX/yerde/Bfg1VjEaMEVcwzi9JOy7NcRB/1G"], ["created_at", "2019-12-06 02:13:26.536638"], ["updated_at", "2019-12-06 02:13:26.536638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.538923"], ["updated_at", "2019-12-06 02:13:26.538923"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1182], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1379], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1379], ["room_id", 1182], ["created_at", "2019-12-06 02:13:26.543252"], ["updated_at", "2019-12-06 02:13:26.543252"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1182"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1182], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1182')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JOXxcJqHTHIkec74Dyy/PuVFDL8/Hpzl4D.KfHHI7iOvqxeMq4mDi"], ["created_at", "2019-12-06 02:13:26.587350"], ["updated_at", "2019-12-06 02:13:26.587350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.589622"], ["updated_at", "2019-12-06 02:13:26.589622"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1183], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1380], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1380], ["room_id", 1183], ["created_at", "2019-12-06 02:13:26.593740"], ["updated_at", "2019-12-06 02:13:26.593740"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1183"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1183], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1183')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 105ms (Views: 72.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iQdUZOJKoP4c.nj1Jc6mlOD8yQNNNLrYOCivq2oLEJcbTwDKy58e2"], ["created_at", "2019-12-06 02:13:27.158572"], ["updated_at", "2019-12-06 02:13:27.158572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.160625"], ["updated_at", "2019-12-06 02:13:27.160625"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.177319"], ["last_sign_in_at", "2019-12-06 02:13:27.177319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.178178"], ["id", 1381]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1184"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1184], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1381], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1381], ["room_id", 1184], ["created_at", "2019-12-06 02:13:27.197708"], ["updated_at", "2019-12-06 02:13:27.197708"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1184], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$G7tLIGvQqNMDCrWQtqQi1.G5agoVzODABTZm0.DoLqrJsWzGoctRG"], ["created_at", "2019-12-06 02:13:27.206527"], ["updated_at", "2019-12-06 02:13:27.206527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.208539"], ["updated_at", "2019-12-06 02:13:27.208539"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.210641"], ["last_sign_in_at", "2019-12-06 02:13:27.210641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.211106"], ["id", 1382]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1185"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1185], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1382], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1382], ["room_id", 1185], ["created_at", "2019-12-06 02:13:27.216633"], ["updated_at", "2019-12-06 02:13:27.216633"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$gs0O9Tt7QQBbbF7BLcfPT.x3qtTfia710N.Y98MNMJlpKzAMP4l.W"], ["created_at", "2019-12-06 02:13:27.228468"], ["updated_at", "2019-12-06 02:13:27.228468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.230400"], ["updated_at", "2019-12-06 02:13:27.230400"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.233233"], ["last_sign_in_at", "2019-12-06 02:13:27.233233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.233796"], ["id", 1383]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1186"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1186], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$FU2q2tyuJUvOhpO0FZgNt.qjv0L57DU.sZA4AS06W/ZdaW134f5B."], ["created_at", "2019-12-06 02:13:27.241836"], ["updated_at", "2019-12-06 02:13:27.241836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.244584"], ["updated_at", "2019-12-06 02:13:27.244584"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.246742"], ["last_sign_in_at", "2019-12-06 02:13:27.246742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.247222"], ["id", 1384]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1187"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$5huWGBSGZ8E.NTMPobstCeR78ND38ZdVFLsntaNIfJPfDs.55MUMG"], ["created_at", "2019-12-06 02:13:27.256762"], ["updated_at", "2019-12-06 02:13:27.256762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.258945"], ["updated_at", "2019-12-06 02:13:27.258945"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1188], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1385], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1385], ["room_id", 1188], ["created_at", "2019-12-06 02:13:27.263073"], ["updated_at", "2019-12-06 02:13:27.263073"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1188” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.265995"], ["last_sign_in_at", "2019-12-06 02:13:27.265995"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.266515"], ["id", 1385]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1188"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1188], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1188')[0m
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 366ms (Views: 349.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$l1oKrecAXz4jBiPMbTzsqOfyGytjRpp5n3zw85kkJXlsyuECfOOIi"], ["created_at", "2019-12-06 02:13:27.642373"], ["updated_at", "2019-12-06 02:13:27.642373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.644647"], ["updated_at", "2019-12-06 02:13:27.644647"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1189], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1386], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1386], ["room_id", 1189], ["created_at", "2019-12-06 02:13:27.650148"], ["updated_at", "2019-12-06 02:13:27.650148"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1189], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1386], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1386], ["room_id", 1189], ["created_at", "2019-12-06 02:13:27.654219"], ["updated_at", "2019-12-06 02:13:27.654219"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.656594"], ["last_sign_in_at", "2019-12-06 02:13:27.656594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.657092"], ["id", 1386]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1386]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 35ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$OBs/x57xbPdK.mQ0NgfnJOQU4vLyf0eNlXAJVmKwNN5xGUx3Fiiwi"], ["created_at", "2019-12-06 02:13:27.700677"], ["updated_at", "2019-12-06 02:13:27.700677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.703001"], ["updated_at", "2019-12-06 02:13:27.703001"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1190], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1387], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1387], ["room_id", 1190], ["created_at", "2019-12-06 02:13:27.707033"], ["updated_at", "2019-12-06 02:13:27.707033"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1190], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1387], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1387], ["room_id", 1190], ["created_at", "2019-12-06 02:13:27.710980"], ["updated_at", "2019-12-06 02:13:27.710980"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.713370"], ["last_sign_in_at", "2019-12-06 02:13:27.713370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.714052"], ["id", 1387]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1387]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$gH02FujeDUFauatnQr7WBuU18V3sWN1eatJE/tVq1Ve7V/dwi953m"], ["created_at", "2019-12-06 02:13:27.728445"], ["updated_at", "2019-12-06 02:13:27.728445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.730839"], ["updated_at", "2019-12-06 02:13:27.730839"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1191], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1388], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1388], ["room_id", 1191], ["created_at", "2019-12-06 02:13:27.735444"], ["updated_at", "2019-12-06 02:13:27.735444"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/629” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.737800"], ["last_sign_in_at", "2019-12-06 02:13:27.737800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.738325"], ["id", 1388]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"629"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 629], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 629]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4Eto7AxtVod6Kv7R7amt8eEqHgVW1XFBIBWecrbw2jeYx6v6uRoVm"], ["created_at", "2019-12-06 02:13:27.752786"], ["updated_at", "2019-12-06 02:13:27.752786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.755489"], ["last_sign_in_at", "2019-12-06 02:13:27.755489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.756200"], ["id", 1389]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 35ms (Views: 18.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bayINlAat1qomXOgpCac4uBuLVvLeA58oT2H2Edvu5EaK0qguTKYO"], ["created_at", "2019-12-06 02:13:27.800702"], ["updated_at", "2019-12-06 02:13:27.800702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.802968"], ["updated_at", "2019-12-06 02:13:27.802968"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1192], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1390], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1390], ["room_id", 1192], ["created_at", "2019-12-06 02:13:27.807239"], ["updated_at", "2019-12-06 02:13:27.807239"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1192], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1390], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1390], ["room_id", 1192], ["created_at", "2019-12-06 02:13:27.810922"], ["updated_at", "2019-12-06 02:13:27.810922"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.813151"], ["last_sign_in_at", "2019-12-06 02:13:27.813151"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.813660"], ["id", 1390]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1192], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1390], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1390], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vb/3ve7FgQoyVNL0GTwqvuVKAE1oIMcgNTRrCCg3WxHGr2V9MvDra"], ["created_at", "2019-12-06 02:13:27.827174"], ["updated_at", "2019-12-06 02:13:27.827174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.829243"], ["updated_at", "2019-12-06 02:13:27.829243"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1193], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1391], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1391], ["room_id", 1193], ["created_at", "2019-12-06 02:13:27.833385"], ["updated_at", "2019-12-06 02:13:27.833385"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1193], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1391], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1391], ["room_id", 1193], ["created_at", "2019-12-06 02:13:27.837632"], ["updated_at", "2019-12-06 02:13:27.837632"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.840207"], ["last_sign_in_at", "2019-12-06 02:13:27.840207"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.840703"], ["id", 1391]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1193], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1391], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1391], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.5ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UvzJ7LQZIWUTV0tDDekXweRnt3Kk7hiPFMFySrP9JtShI9WAAXikG"], ["created_at", "2019-12-06 02:13:27.859044"], ["updated_at", "2019-12-06 02:13:27.859044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.861745"], ["updated_at", "2019-12-06 02:13:27.861745"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1194], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1392], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1392], ["room_id", 1194], ["created_at", "2019-12-06 02:13:27.868178"], ["updated_at", "2019-12-06 02:13:27.868178"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1194], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1392], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1392], ["room_id", 1194], ["created_at", "2019-12-06 02:13:27.873300"], ["updated_at", "2019-12-06 02:13:27.873300"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.876245"], ["last_sign_in_at", "2019-12-06 02:13:27.876245"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.876886"], ["id", 1392]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uNd4DgHh13Ym.Ipn5Q4uKO4xsmGtKUmJQRyaeH.E20PhxSTb3wgoC"], ["created_at", "2019-12-06 02:13:27.893042"], ["updated_at", "2019-12-06 02:13:27.893042"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.895608"], ["updated_at", "2019-12-06 02:13:27.895608"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1195], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1393], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1393], ["room_id", 1195], ["created_at", "2019-12-06 02:13:27.900832"], ["updated_at", "2019-12-06 02:13:27.900832"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1195], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1393], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1393], ["room_id", 1195], ["created_at", "2019-12-06 02:13:27.905439"], ["updated_at", "2019-12-06 02:13:27.905439"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.907930"], ["last_sign_in_at", "2019-12-06 02:13:27.907930"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.908642"], ["id", 1393]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PRwdYJw2pDbnyM6FgOyH/uVkMP80qh5yw39U96eJJ4OsHxCw7/9XK"], ["created_at", "2019-12-06 02:13:27.924830"], ["updated_at", "2019-12-06 02:13:27.924830"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:13:27 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.928076"], ["last_sign_in_at", "2019-12-06 02:13:27.928076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.928591"], ["id", 1394]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 64ms (Views: 48.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mFhLKtDLbCPBWt5D2J8X.Oh2i9DFJl8DjYYvQNouYzOF8QR3nkIBS"], ["created_at", "2019-12-06 02:13:28.007336"], ["updated_at", "2019-12-06 02:13:28.007336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.010128"], ["last_sign_in_at", "2019-12-06 02:13:28.010128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.010755"], ["id", 1395]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$23FT1UIj7cclCss/5MogQ.sIy5/pVqRnEnJkb9BNozw2XoyTPsqfK"], ["created_at", "2019-12-06 02:13:28.024000"], ["updated_at", "2019-12-06 02:13:28.024000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.026552"], ["last_sign_in_at", "2019-12-06 02:13:28.026552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.027057"], ["id", 1396]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 4.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A0.DbOHlkZzpuQlscIRPiO4g/ETm.Z7v04RyAVVUZLDIcKtS.LYf."], ["created_at", "2019-12-06 02:13:28.057467"], ["updated_at", "2019-12-06 02:13:28.057467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.060272"], ["last_sign_in_at", "2019-12-06 02:13:28.060272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.061060"], ["id", 1397]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DNHWJs3aWUNMibNUuo6SmuI4vM/SMj2ZEtTudWZTOAE70bA0kuu52"], ["created_at", "2019-12-06 02:13:28.087815"], ["updated_at", "2019-12-06 02:13:28.087815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.090768"], ["updated_at", "2019-12-06 02:13:28.090768"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1196” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.093661"], ["last_sign_in_at", "2019-12-06 02:13:28.093661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.094221"], ["id", 1398]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1196"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1196], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 26ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2B3vmvX96o/5GMLTdfHgtuCAfvM.IDiKq2VF3Vl/FIA3IRr9Tbhdi"], ["created_at", "2019-12-06 02:13:28.129436"], ["updated_at", "2019-12-06 02:13:28.129436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.132051"], ["updated_at", "2019-12-06 02:13:28.132051"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1197” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.134438"], ["last_sign_in_at", "2019-12-06 02:13:28.134438"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.135155"], ["id", 1399]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1197"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1197], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.144844"], ["updated_at", "2019-12-06 02:13:28.144844"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1198” for 127.0.0.1 at 2019-12-05 23:13:28 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1198"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U9V6U7JeeIGHDz/T2lnjduI1bp/OFGxGAV8INK0EDne.JURSHY8cO"], ["created_at", "2019-12-06 02:13:28.155982"], ["updated_at", "2019-12-06 02:13:28.155982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.158250"], ["updated_at", "2019-12-06 02:13:28.158250"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1199/edit” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.160341"], ["last_sign_in_at", "2019-12-06 02:13:28.160341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.160864"], ["id", 1400]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1199"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1199], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$12APhJpTs7Do6mUv9EaJ1.uKlmStMv8or3LfCJ.OnAAuCMHSGlpR2"], ["created_at", "2019-12-06 02:13:28.190320"], ["updated_at", "2019-12-06 02:13:28.190320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.193497"], ["updated_at", "2019-12-06 02:13:28.193497"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1200/edit” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.196305"], ["last_sign_in_at", "2019-12-06 02:13:28.196305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.196920"], ["id", 1401]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1200"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1200], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.208126"], ["updated_at", "2019-12-06 02:13:28.208126"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1201” for 127.0.0.1 at 2019-12-05 23:13:28 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1201"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NrYbDzY.6DayDCS/GgnA2ec9P5IU8Fx6aiNW3.rNl85Y8wi0fFNqS"], ["created_at", "2019-12-06 02:13:28.220181"], ["updated_at", "2019-12-06 02:13:28.220181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.222543"], ["last_sign_in_at", "2019-12-06 02:13:28.222543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.222987"], ["id", 1402]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.226323"], ["updated_at", "2019-12-06 02:13:28.226323"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3JmR7hEY9hL5Qy22eDn1pu4y7TCOFX3kdr4eHpY2w8RuhXa7wn6RC"], ["created_at", "2019-12-06 02:13:28.235012"], ["updated_at", "2019-12-06 02:13:28.235012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.237609"], ["last_sign_in_at", "2019-12-06 02:13:28.237609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.238099"], ["id", 1403]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.241009"], ["updated_at", "2019-12-06 02:13:28.241009"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q7z4JWNUFj6giDSBhZw8p.Q8VmMseAxMHLu7vDqffh4PDq2pk7yPO"], ["created_at", "2019-12-06 02:13:28.248810"], ["updated_at", "2019-12-06 02:13:28.248810"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.251455"], ["last_sign_in_at", "2019-12-06 02:13:28.251455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.251978"], ["id", 1404]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/eahOdXN55GJnI5DlBe/VOiT5uhDekPpT87EEqeccNJWfTsGT1u3a"], ["created_at", "2019-12-06 02:13:28.264069"], ["updated_at", "2019-12-06 02:13:28.264069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.267242"], ["last_sign_in_at", "2019-12-06 02:13:28.267242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.267713"], ["id", 1405]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yEUHRhxtkOkN20aqy5M11OtVajZilpGai44ZLzbI6oQXqVMU0hyQS"], ["created_at", "2019-12-06 02:13:28.277698"], ["updated_at", "2019-12-06 02:13:28.277698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.280090"], ["last_sign_in_at", "2019-12-06 02:13:28.280090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.280736"], ["id", 1406]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y4NBp.p4ETHqmy5dj5F9VuZV7c0tu/dtov.oXVxVMxwUfrOCj3ARG"], ["created_at", "2019-12-06 02:13:28.291483"], ["updated_at", "2019-12-06 02:13:28.291483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.293888"], ["updated_at", "2019-12-06 02:13:28.293888"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1204” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.296103"], ["last_sign_in_at", "2019-12-06 02:13:28.296103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.296581"], ["id", 1407]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1204"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1204], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:13:28.300963"], ["id", 1204]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1204 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SQNUkcJhu4n.ltyUFYdss.XbfYTvN4CcDwT9Al8FRis.99xABhQyu"], ["created_at", "2019-12-06 02:13:28.308882"], ["updated_at", "2019-12-06 02:13:28.308882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.310939"], ["updated_at", "2019-12-06 02:13:28.310939"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1205” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.313029"], ["last_sign_in_at", "2019-12-06 02:13:28.313029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.313510"], ["id", 1408]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1205"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1205], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:13:28.318350"], ["id", 1205]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1205 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oiic0gT/9TXfJRTLyLEWLOvy82rf56u1LdvHg6cQ8RsGMkDXVLNBm"], ["created_at", "2019-12-06 02:13:28.326211"], ["updated_at", "2019-12-06 02:13:28.326211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.328360"], ["updated_at", "2019-12-06 02:13:28.328360"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1206” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.330478"], ["last_sign_in_at", "2019-12-06 02:13:28.330478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.331100"], ["id", 1409]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1206"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1206], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AaRTPB4i/GiMXRKmKbAPcugo0MljP.v0s.Gf5Bp/6iDRVbGtiGC1u"], ["created_at", "2019-12-06 02:13:28.344578"], ["updated_at", "2019-12-06 02:13:28.344578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.346661"], ["updated_at", "2019-12-06 02:13:28.346661"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1207” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.349039"], ["last_sign_in_at", "2019-12-06 02:13:28.349039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.349583"], ["id", 1410]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1207"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1207], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9PraFGd9WwxhrhPIvy1kSeVUPOK6X7f/d5S/NEJmx229JzVcsIIhq"], ["created_at", "2019-12-06 02:13:28.363956"], ["updated_at", "2019-12-06 02:13:28.363956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.367022"], ["last_sign_in_at", "2019-12-06 02:13:28.367022"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.367548"], ["id", 1411]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kj7IGp9HSrJxlHUxbkv4Lu810aetiMzp9C9BEN1dkWU9whOz5pG4."], ["created_at", "2019-12-06 02:13:28.377819"], ["updated_at", "2019-12-06 02:13:28.377819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.380851"], ["updated_at", "2019-12-06 02:13:28.380851"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1208” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.383072"], ["last_sign_in_at", "2019-12-06 02:13:28.383072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.383591"], ["id", 1412]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1208"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1208], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1208]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HTKfoCWja5.T28gfNJozk.E5GBu1r3a.BXqDfz1CbDnGAX5v4jNA2"], ["created_at", "2019-12-06 02:13:28.394865"], ["updated_at", "2019-12-06 02:13:28.394865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.397065"], ["updated_at", "2019-12-06 02:13:28.397065"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1209” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.399354"], ["last_sign_in_at", "2019-12-06 02:13:28.399354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.400036"], ["id", 1413]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1209"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1209], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1209]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bQiVlmvlRgJ/2wNCbt8.7eH0otA0aGM3I7LsVEB.RGZDW4EJqS5zu"], ["created_at", "2019-12-06 02:13:28.411876"], ["updated_at", "2019-12-06 02:13:28.411876"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.414321"], ["updated_at", "2019-12-06 02:13:28.414321"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1210” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.416583"], ["last_sign_in_at", "2019-12-06 02:13:28.416583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.417115"], ["id", 1414]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1210"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$acpAIIVmGb00fpRDBM025u0p.llj60Dra62gg04OImqQKTYiEaR/u"], ["created_at", "2019-12-06 02:13:28.426365"], ["updated_at", "2019-12-06 02:13:28.426365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.428668"], ["updated_at", "2019-12-06 02:13:28.428668"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1211” for 127.0.0.1 at 2019-12-05 23:13:28 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.430868"], ["last_sign_in_at", "2019-12-06 02:13:28.430868"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.432087"], ["id", 1415]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1211"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rQXYbWsZ/XpD9i2C8Lt5dO2vOTPZIDzbXC/IPJHnLtM7mUAM/7Ne6"], ["created_at", "2019-12-06 02:14:13.998615"], ["updated_at", "2019-12-06 02:14:13.998615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.007195"], ["updated_at", "2019-12-06 02:14:14.007195"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1212"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1212], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1212')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 151ms (Views: 108.1ms | ActiveRecord: 2.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$lHNLeQr1L6N5kVnghIUCguKKRVOgRnoMlq2CHRna9Evxxmr8aVvPO"], ["created_at", "2019-12-06 02:14:14.169064"], ["updated_at", "2019-12-06 02:14:14.169064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.171106"], ["updated_at", "2019-12-06 02:14:14.171106"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1213], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1417], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1417], ["room_id", 1213], ["created_at", "2019-12-06 02:14:14.207315"], ["updated_at", "2019-12-06 02:14:14.207315"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1213"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1213], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1213')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$741oNwl8Ef85e26Z9CEpDetkdJu5NSk5iwYvDkqo9EGaTiRYZYWz6"], ["created_at", "2019-12-06 02:14:14.221466"], ["updated_at", "2019-12-06 02:14:14.221466"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.223692"], ["updated_at", "2019-12-06 02:14:14.223692"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1214], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1418], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1418], ["room_id", 1214], ["created_at", "2019-12-06 02:14:14.227954"], ["updated_at", "2019-12-06 02:14:14.227954"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1214"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1214], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1214')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JepLj33qSVK5RJmgQuBxLexOt3gOd0UkA5F5/PF1PnlabYEIR5aXq"], ["created_at", "2019-12-06 02:14:14.240564"], ["updated_at", "2019-12-06 02:14:14.240564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.242755"], ["updated_at", "2019-12-06 02:14:14.242755"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1215], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1419], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1419], ["room_id", 1215], ["created_at", "2019-12-06 02:14:14.246841"], ["updated_at", "2019-12-06 02:14:14.246841"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1215"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1215], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1215')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$cjzoiEKw.fkf9LA/W6v1WuVRwZFNI19.stmZ5Fz3umcOHIMzb8qk2"], ["created_at", "2019-12-06 02:14:14.257968"], ["updated_at", "2019-12-06 02:14:14.257968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.260304"], ["updated_at", "2019-12-06 02:14:14.260304"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1216], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1420], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1420], ["room_id", 1216], ["created_at", "2019-12-06 02:14:14.263910"], ["updated_at", "2019-12-06 02:14:14.263910"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1216"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1216], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1216')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 103ms (Views: 72.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$56XJBQxZ/IJmL1i5EqbyhOnGWmCGm.PPPqOlWKzSLJ1tFMScq2DNi"], ["created_at", "2019-12-06 02:14:14.830315"], ["updated_at", "2019-12-06 02:14:14.830315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.832407"], ["updated_at", "2019-12-06 02:14:14.832407"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.848356"], ["last_sign_in_at", "2019-12-06 02:14:14.848356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.849185"], ["id", 1421]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1217"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1217], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1421], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1421], ["room_id", 1217], ["created_at", "2019-12-06 02:14:14.866474"], ["updated_at", "2019-12-06 02:14:14.866474"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1217], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$zzb4sj0aQ3OXvAxNVhUn2uNFPwMF6f1N40H6pXz/YBvJvLntLFNXS"], ["created_at", "2019-12-06 02:14:14.875178"], ["updated_at", "2019-12-06 02:14:14.875178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.877341"], ["updated_at", "2019-12-06 02:14:14.877341"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.879453"], ["last_sign_in_at", "2019-12-06 02:14:14.879453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.879903"], ["id", 1422]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1218"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1218], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1422], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1422], ["room_id", 1218], ["created_at", "2019-12-06 02:14:14.885290"], ["updated_at", "2019-12-06 02:14:14.885290"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$S5aIk0C8vO.w1jaA5vavlOUBMNNqO68H2SX0rTVk4DRaSI6Q7Xkc6"], ["created_at", "2019-12-06 02:14:14.893870"], ["updated_at", "2019-12-06 02:14:14.893870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.895900"], ["updated_at", "2019-12-06 02:14:14.895900"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.898042"], ["last_sign_in_at", "2019-12-06 02:14:14.898042"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.898510"], ["id", 1423]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1219"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1219], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$l7322dT9Rn8iWpYGKvwMfOK5SYwgMun/uNL.pPBEZlXSJg/eDouau"], ["created_at", "2019-12-06 02:14:14.908038"], ["updated_at", "2019-12-06 02:14:14.908038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.910280"], ["updated_at", "2019-12-06 02:14:14.910280"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.912542"], ["last_sign_in_at", "2019-12-06 02:14:14.912542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.913013"], ["id", 1424]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1220"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$6MXigQ97rOjMvrd/Sflk/Oz2jdjZXdWh0qxovH2BBeZBWbeoCkODu"], ["created_at", "2019-12-06 02:14:14.924137"], ["updated_at", "2019-12-06 02:14:14.924137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.926366"], ["updated_at", "2019-12-06 02:14:14.926366"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1221], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1425], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1425], ["room_id", 1221], ["created_at", "2019-12-06 02:14:14.930355"], ["updated_at", "2019-12-06 02:14:14.930355"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1221” for 127.0.0.1 at 2019-12-05 23:14:14 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.932905"], ["last_sign_in_at", "2019-12-06 02:14:14.932905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.937423"], ["id", 1425]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1221"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1221], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1221')[0m
Rendered appointments/show.html.erb within layouts/application (21.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 346ms (Views: 328.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$pj88.oIuBzJ8J3tqoguB7e5JVC.E.5.8UcVHZavQBRA.nySjVYRQu"], ["created_at", "2019-12-06 02:14:15.293005"], ["updated_at", "2019-12-06 02:14:15.293005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.295240"], ["updated_at", "2019-12-06 02:14:15.295240"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1222], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1426], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1426], ["room_id", 1222], ["created_at", "2019-12-06 02:14:15.299689"], ["updated_at", "2019-12-06 02:14:15.299689"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1222], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1426], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1426], ["room_id", 1222], ["created_at", "2019-12-06 02:14:15.303787"], ["updated_at", "2019-12-06 02:14:15.303787"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.306282"], ["last_sign_in_at", "2019-12-06 02:14:15.306282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.306838"], ["id", 1426]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1426]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 36ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$f02zUnqe8dPidQNe9QN8Q.XjoxyJs2TSVrmxMLzoU.tgQpWKElOM."], ["created_at", "2019-12-06 02:14:15.351534"], ["updated_at", "2019-12-06 02:14:15.351534"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.353895"], ["updated_at", "2019-12-06 02:14:15.353895"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1223], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1427], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1427], ["room_id", 1223], ["created_at", "2019-12-06 02:14:15.358119"], ["updated_at", "2019-12-06 02:14:15.358119"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1223], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1427], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1427], ["room_id", 1223], ["created_at", "2019-12-06 02:14:15.374800"], ["updated_at", "2019-12-06 02:14:15.374800"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.377338"], ["last_sign_in_at", "2019-12-06 02:14:15.377338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.377892"], ["id", 1427]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1427]] Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$d3lso8524/QoQcvuScznpOz0gukSBwDgX.W7ylb.uua2O/MHzSgpq"], ["created_at", "2019-12-06 02:14:15.391803"], ["updated_at", "2019-12-06 02:14:15.391803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.393946"], ["updated_at", "2019-12-06 02:14:15.393946"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1224], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1428], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1428], ["room_id", 1224], ["created_at", "2019-12-06 02:14:15.397947"], ["updated_at", "2019-12-06 02:14:15.397947"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/649” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.400464"], ["last_sign_in_at", "2019-12-06 02:14:15.400464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.400996"], ["id", 1428]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"649"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 649], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 649]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ryTNHRhe9WkUnjM3oVnrg.n1nNAJd2INIUWVPR/heI7J3H1f6AKrq"], ["created_at", "2019-12-06 02:14:15.414823"], ["updated_at", "2019-12-06 02:14:15.414823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.417708"], ["last_sign_in_at", "2019-12-06 02:14:15.417708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.418478"], ["id", 1429]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E0UFuyLL2/1XnKp7HVsnA.W6/kPDZyi6hOspyTGFm9zxC/7WeraAW"], ["created_at", "2019-12-06 02:14:15.463254"], ["updated_at", "2019-12-06 02:14:15.463254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.465716"], ["updated_at", "2019-12-06 02:14:15.465716"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1225], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1430], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1430], ["room_id", 1225], ["created_at", "2019-12-06 02:14:15.470338"], ["updated_at", "2019-12-06 02:14:15.470338"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1225], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1430], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1430], ["room_id", 1225], ["created_at", "2019-12-06 02:14:15.474256"], ["updated_at", "2019-12-06 02:14:15.474256"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.476715"], ["last_sign_in_at", "2019-12-06 02:14:15.476715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.477262"], ["id", 1430]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1225], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1430], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1430], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0OR0kHBduStnZc9H05GSGeTPWNMVTmGa7C2MtTgJS9J0dbWw6/bn2"], ["created_at", "2019-12-06 02:14:15.491453"], ["updated_at", "2019-12-06 02:14:15.491453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.493574"], ["updated_at", "2019-12-06 02:14:15.493574"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1226], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1431], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1431], ["room_id", 1226], ["created_at", "2019-12-06 02:14:15.497490"], ["updated_at", "2019-12-06 02:14:15.497490"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1226], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1431], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1431], ["room_id", 1226], ["created_at", "2019-12-06 02:14:15.502047"], ["updated_at", "2019-12-06 02:14:15.502047"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.504449"], ["last_sign_in_at", "2019-12-06 02:14:15.504449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.504971"], ["id", 1431]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1226], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1431], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1431], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KQeoOwf6CLgzjLWZzfzYMuecFRvi8fhC81kINXb9ynhig1/OlHm5y"], ["created_at", "2019-12-06 02:14:15.519852"], ["updated_at", "2019-12-06 02:14:15.519852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.522140"], ["updated_at", "2019-12-06 02:14:15.522140"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1227], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1432], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1432], ["room_id", 1227], ["created_at", "2019-12-06 02:14:15.526317"], ["updated_at", "2019-12-06 02:14:15.526317"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1227], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1432], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1432], ["room_id", 1227], ["created_at", "2019-12-06 02:14:15.530369"], ["updated_at", "2019-12-06 02:14:15.530369"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.533104"], ["last_sign_in_at", "2019-12-06 02:14:15.533104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.533725"], ["id", 1432]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TFhZd5AFhZriFSNg5oWrYuSLX1x/nWdAY0AOPeyHs.b7edPuCDrrK"], ["created_at", "2019-12-06 02:14:15.545360"], ["updated_at", "2019-12-06 02:14:15.545360"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.547702"], ["updated_at", "2019-12-06 02:14:15.547702"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1228], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1433], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1433], ["room_id", 1228], ["created_at", "2019-12-06 02:14:15.552656"], ["updated_at", "2019-12-06 02:14:15.552656"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1228], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1433], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1433], ["room_id", 1228], ["created_at", "2019-12-06 02:14:15.556612"], ["updated_at", "2019-12-06 02:14:15.556612"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.558870"], ["last_sign_in_at", "2019-12-06 02:14:15.558870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.559397"], ["id", 1433]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d8XVaudz9WotYrMNa7fmZeBKV/R3tpwf9ECfOhCU6vTl.pFz8AT9C"], ["created_at", "2019-12-06 02:14:15.574070"], ["updated_at", "2019-12-06 02:14:15.574070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.576882"], ["last_sign_in_at", "2019-12-06 02:14:15.576882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.577497"], ["id", 1434]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.6ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 65ms (Views: 48.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QA5/sYKNtdiJ8ccd3CuMaOCQkpwqdX.rKVdmmH5yadtV42uaEQGqK"], ["created_at", "2019-12-06 02:14:15.656080"], ["updated_at", "2019-12-06 02:14:15.656080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.658869"], ["last_sign_in_at", "2019-12-06 02:14:15.658869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.660073"], ["id", 1435]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lO9NBp3C2iP12RmLFLupXuzTAkVtM0tGAJ1S0z7qWrTaKaT0lQIcK"], ["created_at", "2019-12-06 02:14:15.672484"], ["updated_at", "2019-12-06 02:14:15.672484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.675809"], ["last_sign_in_at", "2019-12-06 02:14:15.675809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.676659"], ["id", 1436]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (5.0ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 23ms (Views: 6.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vWy3QIBc4fAZcCDbdVcu7uOJWSFtfOQsLyKghpIpRya5Ysh2CMisq"], ["created_at", "2019-12-06 02:14:15.710172"], ["updated_at", "2019-12-06 02:14:15.710172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.712635"], ["last_sign_in_at", "2019-12-06 02:14:15.712635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.713338"], ["id", 1437]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F7GAnnffXj8PvS0lOnDzwOTFL7JOlYIonNeg71Qd10AuSdCKeLFW."], ["created_at", "2019-12-06 02:14:15.737984"], ["updated_at", "2019-12-06 02:14:15.737984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.740876"], ["updated_at", "2019-12-06 02:14:15.740876"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1229” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.743475"], ["last_sign_in_at", "2019-12-06 02:14:15.743475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.744055"], ["id", 1438]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1229"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1229], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Udo3JiHiMoApcYxLvb0e6uVIJoZLaH.OWOJD73608NCqoSMNolAxW"], ["created_at", "2019-12-06 02:14:15.773085"], ["updated_at", "2019-12-06 02:14:15.773085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.775691"], ["updated_at", "2019-12-06 02:14:15.775691"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1230” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.778407"], ["last_sign_in_at", "2019-12-06 02:14:15.778407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.778971"], ["id", 1439]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1230"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1230], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.791631"], ["updated_at", "2019-12-06 02:14:15.791631"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1231” for 127.0.0.1 at 2019-12-05 23:14:15 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1231"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XbpVCRHocgeFNETH/vUhBewNKDfOX2qKywwCvitblarnT8ZJX1Wfm"], ["created_at", "2019-12-06 02:14:15.804527"], ["updated_at", "2019-12-06 02:14:15.804527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.807755"], ["updated_at", "2019-12-06 02:14:15.807755"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1232/edit” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.810260"], ["last_sign_in_at", "2019-12-06 02:14:15.810260"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.810764"], ["id", 1440]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1232"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1232], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jB5Il59Ktz7Wvjfu0.4a7uJliFQ1KmjU4iTQ/s/V4hp8qtAjtrCUO"], ["created_at", "2019-12-06 02:14:15.840268"], ["updated_at", "2019-12-06 02:14:15.840268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.842500"], ["updated_at", "2019-12-06 02:14:15.842500"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1233/edit” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.844980"], ["last_sign_in_at", "2019-12-06 02:14:15.844980"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.845653"], ["id", 1441]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1233"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1233], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.857856"], ["updated_at", "2019-12-06 02:14:15.857856"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1234” for 127.0.0.1 at 2019-12-05 23:14:15 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1234"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MvauzR1SzzU88MXRCdCCgeeQ3/sSCmJZnhcv.xc2EVUPmtnC.0nSW"], ["created_at", "2019-12-06 02:14:15.870446"], ["updated_at", "2019-12-06 02:14:15.870446"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.873785"], ["last_sign_in_at", "2019-12-06 02:14:15.873785"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.874368"], ["id", 1442]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.877841"], ["updated_at", "2019-12-06 02:14:15.877841"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MFiiESEasvSY.AnuO56sxuVe.5PB/AA5V2nGPKipJsxJ62elHgp2S"], ["created_at", "2019-12-06 02:14:15.886970"], ["updated_at", "2019-12-06 02:14:15.886970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.897196"], ["last_sign_in_at", "2019-12-06 02:14:15.897196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.897746"], ["id", 1443]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.901162"], ["updated_at", "2019-12-06 02:14:15.901162"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dNjCznXSDbOqUeZad9shl.XPQOL.EHw196g6WLOCH5KcjT6C67g8C"], ["created_at", "2019-12-06 02:14:15.908794"], ["updated_at", "2019-12-06 02:14:15.908794"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.911261"], ["last_sign_in_at", "2019-12-06 02:14:15.911261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.911733"], ["id", 1444]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PFPgjHnKojwa20B9lIRNCuA8N60Uj4B2hxnT3kBBRk0izCkomEHla"], ["created_at", "2019-12-06 02:14:15.922147"], ["updated_at", "2019-12-06 02:14:15.922147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.925240"], ["last_sign_in_at", "2019-12-06 02:14:15.925240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.925721"], ["id", 1445]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iHZ4GA6OfKy1qB4b.f/pN.6b7y9GD2fcG7Up570zWy2aGYVetuApq"], ["created_at", "2019-12-06 02:14:15.936040"], ["updated_at", "2019-12-06 02:14:15.936040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.938489"], ["last_sign_in_at", "2019-12-06 02:14:15.938489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.938987"], ["id", 1446]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$scz/L4jDh8HxWJ4rO1LhG.7vvCji9rWxM5P/SfCcfLAB75ZdOeSiq"], ["created_at", "2019-12-06 02:14:15.950539"], ["updated_at", "2019-12-06 02:14:15.950539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.952977"], ["updated_at", "2019-12-06 02:14:15.952977"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1237” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.955160"], ["last_sign_in_at", "2019-12-06 02:14:15.955160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.955661"], ["id", 1447]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1237"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1237], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:14:15.959124"], ["id", 1237]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1237 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9WvkTOhVhaZvSGDa5uu5WuLFzjUdj/hBozmj/QV2Xtbv7nCrVeZza"], ["created_at", "2019-12-06 02:14:15.967299"], ["updated_at", "2019-12-06 02:14:15.967299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.969515"], ["updated_at", "2019-12-06 02:14:15.969515"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1238” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.971986"], ["last_sign_in_at", "2019-12-06 02:14:15.971986"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.972508"], ["id", 1448]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1238"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1238], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:14:15.976251"], ["id", 1238]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1238 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$seRdQVpilXO9iAmCIf4rIOR43dRZWLS.truT8g.Xw34dpV.ogpB6O"], ["created_at", "2019-12-06 02:14:15.985175"], ["updated_at", "2019-12-06 02:14:15.985175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.987422"], ["updated_at", "2019-12-06 02:14:15.987422"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1239” for 127.0.0.1 at 2019-12-05 23:14:15 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.989660"], ["last_sign_in_at", "2019-12-06 02:14:15.989660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.990216"], ["id", 1449]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1239"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1239], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1okRDncLNycEKcx1xlQPweLbBHIawiFRNSbd3TDdfeawKclQWhGB2"], ["created_at", "2019-12-06 02:14:16.004312"], ["updated_at", "2019-12-06 02:14:16.004312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.006514"], ["updated_at", "2019-12-06 02:14:16.006514"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1240” for 127.0.0.1 at 2019-12-05 23:14:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.009047"], ["last_sign_in_at", "2019-12-06 02:14:16.009047"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.009621"], ["id", 1450]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1240"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1240], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2yOkIRSz9.f2aaZkYkTUVOi3X6h74pyHNaTH4R14C3aw2.hyMILYK"], ["created_at", "2019-12-06 02:14:16.024545"], ["updated_at", "2019-12-06 02:14:16.024545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.027144"], ["last_sign_in_at", "2019-12-06 02:14:16.027144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.027641"], ["id", 1451]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xroIiCTSMkuEwZiD2Zewxei7CBO2hcl7hNyq.ZtCO2z18/9Rsa7Bm"], ["created_at", "2019-12-06 02:14:16.039798"], ["updated_at", "2019-12-06 02:14:16.039798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.042692"], ["updated_at", "2019-12-06 02:14:16.042692"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1241” for 127.0.0.1 at 2019-12-05 23:14:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.044833"], ["last_sign_in_at", "2019-12-06 02:14:16.044833"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.045408"], ["id", 1452]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1241"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1241], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1241]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SCcNObGVkkhj2oCZFuEo1edn16b3NT7e56O3ho3XgpONtnNqHxgk."], ["created_at", "2019-12-06 02:14:16.057486"], ["updated_at", "2019-12-06 02:14:16.057486"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.059818"], ["updated_at", "2019-12-06 02:14:16.059818"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1242” for 127.0.0.1 at 2019-12-05 23:14:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.061883"], ["last_sign_in_at", "2019-12-06 02:14:16.061883"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.062570"], ["id", 1453]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1242"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1242], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1242]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rZtxkSqztj0SHL4iE/xD4uJGcH.TNgyqjezbkFPhPvwDA1Yu5nOsm"], ["created_at", "2019-12-06 02:14:16.075871"], ["updated_at", "2019-12-06 02:14:16.075871"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.078291"], ["updated_at", "2019-12-06 02:14:16.078291"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1243” for 127.0.0.1 at 2019-12-05 23:14:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.080357"], ["last_sign_in_at", "2019-12-06 02:14:16.080357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.080908"], ["id", 1454]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1243"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s5SxZeZp.tny2t2.uB7ebO7EKjYu2hNO5VPcWLwyMyqIN/ldyjfvG"], ["created_at", "2019-12-06 02:14:16.091345"], ["updated_at", "2019-12-06 02:14:16.091345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.093795"], ["updated_at", "2019-12-06 02:14:16.093795"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1244” for 127.0.0.1 at 2019-12-05 23:14:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.096120"], ["last_sign_in_at", "2019-12-06 02:14:16.096120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.096647"], ["id", 1455]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1244"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (8.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (3.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$h7M71t2KgW2RdOmkxiX4XO8jhRtu/o9WomUsIEAal.6KNx.vmk3xK"], ["created_at", "2019-12-06 02:15:21.859858"], ["updated_at", "2019-12-06 02:15:21.859858"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (3.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:21.872265"], ["updated_at", "2019-12-06 02:15:21.872265"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1245"}
[1m[36mRoom Load (2.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1245], ["LIMIT", 1]]
[1m[36mAppointment Load (7.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1245')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 161ms (Views: 109.1ms | ActiveRecord: 11.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$tK8GVE26WiOreS8qEs4of.qRvEb8./DARGNCgkdYYZNqmOsmMUuka"], ["created_at", "2019-12-06 02:15:22.047351"], ["updated_at", "2019-12-06 02:15:22.047351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.049659"], ["updated_at", "2019-12-06 02:15:22.049659"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1246], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1457], ["LIMIT", 1]]
[1m[35mSQL (3.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1457], ["room_id", 1246], ["created_at", "2019-12-06 02:15:22.086123"], ["updated_at", "2019-12-06 02:15:22.086123"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1246"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1246], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1246')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$MdLA.FvLahFdXHNxyQvGlO6w3cLEGaXMgJXkJWGEAgln6XUGjYXIK"], ["created_at", "2019-12-06 02:15:22.103426"], ["updated_at", "2019-12-06 02:15:22.103426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.105805"], ["updated_at", "2019-12-06 02:15:22.105805"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1247], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1458], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1458], ["room_id", 1247], ["created_at", "2019-12-06 02:15:22.110067"], ["updated_at", "2019-12-06 02:15:22.110067"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1247"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1247], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1247')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qFPesWZbiWZ6TSJNTVAVL.oiP/CcR82jzfVtI37GoGmlG5Tq.pGQ."], ["created_at", "2019-12-06 02:15:22.122768"], ["updated_at", "2019-12-06 02:15:22.122768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.125029"], ["updated_at", "2019-12-06 02:15:22.125029"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1248], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1459], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1459], ["room_id", 1248], ["created_at", "2019-12-06 02:15:22.129305"], ["updated_at", "2019-12-06 02:15:22.129305"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1248"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1248], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1248')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$QJINDwGrX9D7wSs0/sPGouEdnMIpRW2azjk2Tl52ni02FAZHy7DHu"], ["created_at", "2019-12-06 02:15:22.139749"], ["updated_at", "2019-12-06 02:15:22.139749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.141899"], ["updated_at", "2019-12-06 02:15:22.141899"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1249], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1460], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1460], ["room_id", 1249], ["created_at", "2019-12-06 02:15:22.145758"], ["updated_at", "2019-12-06 02:15:22.145758"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1249"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1249], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1249')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 102ms (Views: 71.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$BRb8rgETtls7jY1DHE8H1Os6P934gOf7rqMcxnpzZRlrzxFs5Gr4q"], ["created_at", "2019-12-06 02:15:22.703888"], ["updated_at", "2019-12-06 02:15:22.703888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.706163"], ["updated_at", "2019-12-06 02:15:22.706163"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.722272"], ["last_sign_in_at", "2019-12-06 02:15:22.722272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.722938"], ["id", 1461]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1250"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1250], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1461], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1461], ["room_id", 1250], ["created_at", "2019-12-06 02:15:22.739634"], ["updated_at", "2019-12-06 02:15:22.739634"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1250], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YgF3CLTuWVUO/Kj1zdzuUeaZl6PaF1dN9r.OcMqekHniei03dWsam"], ["created_at", "2019-12-06 02:15:22.749903"], ["updated_at", "2019-12-06 02:15:22.749903"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.752128"], ["updated_at", "2019-12-06 02:15:22.752128"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.754684"], ["last_sign_in_at", "2019-12-06 02:15:22.754684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.755153"], ["id", 1462]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1251"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1251], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1462], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1462], ["room_id", 1251], ["created_at", "2019-12-06 02:15:22.759938"], ["updated_at", "2019-12-06 02:15:22.759938"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$4Oxlvyt/VOcTxY9rhsgeR.94UeFlFoRT8ll4Sm82X6FLzomdrZwSG"], ["created_at", "2019-12-06 02:15:22.769245"], ["updated_at", "2019-12-06 02:15:22.769245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.771489"], ["updated_at", "2019-12-06 02:15:22.771489"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.774489"], ["last_sign_in_at", "2019-12-06 02:15:22.774489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.774993"], ["id", 1463]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1252"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1252], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7HC.UWuGljMUoKXnSQB72u1sHmRC0e8HFaRLXtmCWjUk1wuBXRdfK"], ["created_at", "2019-12-06 02:15:22.786302"], ["updated_at", "2019-12-06 02:15:22.786302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.788595"], ["updated_at", "2019-12-06 02:15:22.788595"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.791126"], ["last_sign_in_at", "2019-12-06 02:15:22.791126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.791639"], ["id", 1464]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1253"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$bL0.6PTmodgH2KMJerWCcODV1aneouoYY5sxImA5WpPg1LBDjASc."], ["created_at", "2019-12-06 02:15:22.802025"], ["updated_at", "2019-12-06 02:15:22.802025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.804465"], ["updated_at", "2019-12-06 02:15:22.804465"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1254], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1465], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1465], ["room_id", 1254], ["created_at", "2019-12-06 02:15:22.812353"], ["updated_at", "2019-12-06 02:15:22.812353"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1254” for 127.0.0.1 at 2019-12-05 23:15:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.814979"], ["last_sign_in_at", "2019-12-06 02:15:22.814979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.815521"], ["id", 1465]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1254"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1254], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1254')[0m
Rendered appointments/show.html.erb within layouts/application (21.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 345ms (Views: 328.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.DZOF0r3OOpSX/WBtUE06.dLhvlgDi8vaV1PLh07PnBD8/c.GKQ7q"], ["created_at", "2019-12-06 02:15:23.171642"], ["updated_at", "2019-12-06 02:15:23.171642"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.173936"], ["updated_at", "2019-12-06 02:15:23.173936"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1255], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1466], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1466], ["room_id", 1255], ["created_at", "2019-12-06 02:15:23.178166"], ["updated_at", "2019-12-06 02:15:23.178166"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1255], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1466], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1466], ["room_id", 1255], ["created_at", "2019-12-06 02:15:23.181904"], ["updated_at", "2019-12-06 02:15:23.181904"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.184334"], ["last_sign_in_at", "2019-12-06 02:15:23.184334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.185109"], ["id", 1466]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1466]] Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$OecE8JKnVYHHdubel5CLsOYSRHqAVemGWTfPMAdcxaNgRlZAeMlee"], ["created_at", "2019-12-06 02:15:23.228583"], ["updated_at", "2019-12-06 02:15:23.228583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.230573"], ["updated_at", "2019-12-06 02:15:23.230573"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (12.9ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1256], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1467], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1467], ["room_id", 1256], ["created_at", "2019-12-06 02:15:23.246932"], ["updated_at", "2019-12-06 02:15:23.246932"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1256], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1467], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1467], ["room_id", 1256], ["created_at", "2019-12-06 02:15:23.250653"], ["updated_at", "2019-12-06 02:15:23.250653"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.253272"], ["last_sign_in_at", "2019-12-06 02:15:23.253272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.253811"], ["id", 1467]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1467]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YCQ4J7QlHF7Y8HfKA0Pwq.gQ3SbD5DtuuWhJv6D3eCSFBcGg9EhVG"], ["created_at", "2019-12-06 02:15:23.267091"], ["updated_at", "2019-12-06 02:15:23.267091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.269579"], ["updated_at", "2019-12-06 02:15:23.269579"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1257], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1468], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1468], ["room_id", 1257], ["created_at", "2019-12-06 02:15:23.273453"], ["updated_at", "2019-12-06 02:15:23.273453"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/669” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.275623"], ["last_sign_in_at", "2019-12-06 02:15:23.275623"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.276092"], ["id", 1468]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"669"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 669], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 669]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/A7jAXFZlb5JDMlT9wFkwuw8YyzCpLcohuHDFRK2AixFW/Q8kURuG"], ["created_at", "2019-12-06 02:15:23.289661"], ["updated_at", "2019-12-06 02:15:23.289661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.292128"], ["last_sign_in_at", "2019-12-06 02:15:23.292128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.292592"], ["id", 1469]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rd6SM6TPZyHaYiHmxAldJe00r3U3p1MhEL5PKoppZ6NDZ4UuB33ea"], ["created_at", "2019-12-06 02:15:23.337012"], ["updated_at", "2019-12-06 02:15:23.337012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.339142"], ["updated_at", "2019-12-06 02:15:23.339142"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1258], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1470], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1470], ["room_id", 1258], ["created_at", "2019-12-06 02:15:23.342962"], ["updated_at", "2019-12-06 02:15:23.342962"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1258], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1470], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1470], ["room_id", 1258], ["created_at", "2019-12-06 02:15:23.346837"], ["updated_at", "2019-12-06 02:15:23.346837"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.349139"], ["last_sign_in_at", "2019-12-06 02:15:23.349139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.349665"], ["id", 1470]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1258], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1470], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1470], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f3u88WiLUJ2zW9hM8OdohebK8wcwiPDyNRKhSR4.4S1YwK0H9mUAW"], ["created_at", "2019-12-06 02:15:23.363877"], ["updated_at", "2019-12-06 02:15:23.363877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.366226"], ["updated_at", "2019-12-06 02:15:23.366226"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1259], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1471], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1471], ["room_id", 1259], ["created_at", "2019-12-06 02:15:23.370891"], ["updated_at", "2019-12-06 02:15:23.370891"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1259], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1471], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1471], ["room_id", 1259], ["created_at", "2019-12-06 02:15:23.374845"], ["updated_at", "2019-12-06 02:15:23.374845"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.377291"], ["last_sign_in_at", "2019-12-06 02:15:23.377291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.377814"], ["id", 1471]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1259], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1471], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1471], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$igGVSKeQ..wvFxZB9SmJAuZDkgzq93od4C63Z9mI7bVAYrKsn/QQO"], ["created_at", "2019-12-06 02:15:23.393069"], ["updated_at", "2019-12-06 02:15:23.393069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.395295"], ["updated_at", "2019-12-06 02:15:23.395295"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1260], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1472], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1472], ["room_id", 1260], ["created_at", "2019-12-06 02:15:23.399207"], ["updated_at", "2019-12-06 02:15:23.399207"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1260], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1472], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1472], ["room_id", 1260], ["created_at", "2019-12-06 02:15:23.403725"], ["updated_at", "2019-12-06 02:15:23.403725"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.406159"], ["last_sign_in_at", "2019-12-06 02:15:23.406159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.406698"], ["id", 1472]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YmsivXXfXERKiYJVWzEJ7u1R/Z4YoXzdbVLNtSxU1Imptp8kMke.m"], ["created_at", "2019-12-06 02:15:23.418670"], ["updated_at", "2019-12-06 02:15:23.418670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.421097"], ["updated_at", "2019-12-06 02:15:23.421097"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1261], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1473], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1473], ["room_id", 1261], ["created_at", "2019-12-06 02:15:23.425257"], ["updated_at", "2019-12-06 02:15:23.425257"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1261], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1473], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1473], ["room_id", 1261], ["created_at", "2019-12-06 02:15:23.429254"], ["updated_at", "2019-12-06 02:15:23.429254"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.431760"], ["last_sign_in_at", "2019-12-06 02:15:23.431760"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.432277"], ["id", 1473]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yiCSPlW/1DctmrXugEGsJOS4S8n/B66xxtSFZiUhXdaMAscf5rZau"], ["created_at", "2019-12-06 02:15:23.447598"], ["updated_at", "2019-12-06 02:15:23.447598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.450652"], ["last_sign_in_at", "2019-12-06 02:15:23.450652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.451355"], ["id", 1474]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (11.6ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 66ms (Views: 49.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y04TlPaBzmK/IxYzpSmMbub3M919l3MdPmsjKH9DFkk/nkXDU1iSu"], ["created_at", "2019-12-06 02:15:23.529871"], ["updated_at", "2019-12-06 02:15:23.529871"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.532338"], ["last_sign_in_at", "2019-12-06 02:15:23.532338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.532962"], ["id", 1475]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/bVhV63oHS3okdpBMs9KHeyUncRHOA0WumIVpjfVK9jfcHQ0lfNKi"], ["created_at", "2019-12-06 02:15:23.544432"], ["updated_at", "2019-12-06 02:15:23.544432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.546927"], ["last_sign_in_at", "2019-12-06 02:15:23.546927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.547390"], ["id", 1476]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 5.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W5AMywwWDZHccA8bTw2ET.4PQFfsh/4toNtuqndT0O386uhRgKk5a"], ["created_at", "2019-12-06 02:15:23.577767"], ["updated_at", "2019-12-06 02:15:23.577767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.580000"], ["last_sign_in_at", "2019-12-06 02:15:23.580000"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.580660"], ["id", 1477]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W81BxN4PnNxHltA/qooQhuihrWTDKbE2uj0OzKiDAhYltjPNLS/8i"], ["created_at", "2019-12-06 02:15:23.604295"], ["updated_at", "2019-12-06 02:15:23.604295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.606670"], ["updated_at", "2019-12-06 02:15:23.606670"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1262” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.609011"], ["last_sign_in_at", "2019-12-06 02:15:23.609011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.609505"], ["id", 1478]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1262"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1262], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7I21BK2XQng7vchEwzoefuo6Drtr.3B4z0GBfGV/vWFpGnYTeOy56"], ["created_at", "2019-12-06 02:15:23.638492"], ["updated_at", "2019-12-06 02:15:23.638492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.641089"], ["updated_at", "2019-12-06 02:15:23.641089"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1263” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.643381"], ["last_sign_in_at", "2019-12-06 02:15:23.643381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.644194"], ["id", 1479]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1263"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1263], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.655434"], ["updated_at", "2019-12-06 02:15:23.655434"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1264” for 127.0.0.1 at 2019-12-05 23:15:23 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1264"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lr0YBNdg3HIUGgtedVP3zuftln3.Wdn1NZOf8Pzr9/FwFNuWR4qOu"], ["created_at", "2019-12-06 02:15:23.667128"], ["updated_at", "2019-12-06 02:15:23.667128"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.669911"], ["updated_at", "2019-12-06 02:15:23.669911"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1265/edit” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.672435"], ["last_sign_in_at", "2019-12-06 02:15:23.672435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.672956"], ["id", 1480]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1265"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1265], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 20ms (Views: 4.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$glV13DyYBPXyXeiT8Zf31.rZChpNMK4whazHHDKl4bHvZ5uQH3TmW"], ["created_at", "2019-12-06 02:15:23.702758"], ["updated_at", "2019-12-06 02:15:23.702758"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.705278"], ["updated_at", "2019-12-06 02:15:23.705278"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1266/edit” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.707826"], ["last_sign_in_at", "2019-12-06 02:15:23.707826"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.708360"], ["id", 1481]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1266"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1266], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.721218"], ["updated_at", "2019-12-06 02:15:23.721218"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1267” for 127.0.0.1 at 2019-12-05 23:15:23 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1267"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iWXDjsSU7n9uRM90F18uqeNv40.07l7hghivysI1i5kbGw4XVvnZC"], ["created_at", "2019-12-06 02:15:23.734152"], ["updated_at", "2019-12-06 02:15:23.734152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.737896"], ["last_sign_in_at", "2019-12-06 02:15:23.737896"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.738422"], ["id", 1482]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.742195"], ["updated_at", "2019-12-06 02:15:23.742195"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p4jILZEqbFuKH7UZR0pp6.MvP6diFvACOkWrFBlkGKzTDoqgMp8li"], ["created_at", "2019-12-06 02:15:23.759605"], ["updated_at", "2019-12-06 02:15:23.759605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.762102"], ["last_sign_in_at", "2019-12-06 02:15:23.762102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.762610"], ["id", 1483]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.765991"], ["updated_at", "2019-12-06 02:15:23.765991"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q.4AAPp4aefSHpTa8jGaOORT129LdIiJoL84xGLfNL/D1NPUatXJ2"], ["created_at", "2019-12-06 02:15:23.775308"], ["updated_at", "2019-12-06 02:15:23.775308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.778736"], ["last_sign_in_at", "2019-12-06 02:15:23.778736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.779528"], ["id", 1484]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uRUZk6entyZu.vG3SlGPcuu5oDBeTcfgvn5tOkVlANywUivp6liMC"], ["created_at", "2019-12-06 02:15:23.791502"], ["updated_at", "2019-12-06 02:15:23.791502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.794056"], ["last_sign_in_at", "2019-12-06 02:15:23.794056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.794595"], ["id", 1485]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bqzDWu/Lr3pqxQ7lPfKrj.d/TPEDQNyINrTXIAibVLxXcVx1QmwaW"], ["created_at", "2019-12-06 02:15:23.806407"], ["updated_at", "2019-12-06 02:15:23.806407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.809011"], ["last_sign_in_at", "2019-12-06 02:15:23.809011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.809508"], ["id", 1486]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f5bl1ZeINJdSzAkfkQDb/.2jCvolcWZhTLxbqP8zy6cUxeZ/iXGJu"], ["created_at", "2019-12-06 02:15:23.821279"], ["updated_at", "2019-12-06 02:15:23.821279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.823661"], ["updated_at", "2019-12-06 02:15:23.823661"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1270” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.826182"], ["last_sign_in_at", "2019-12-06 02:15:23.826182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.826688"], ["id", 1487]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1270"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1270], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:15:23.830496"], ["id", 1270]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1270 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MFvlgzDphogVfS0ItmQOB.ak.Wge4MJP.6xe7VbCBXSR3zV.tiO/6"], ["created_at", "2019-12-06 02:15:23.839353"], ["updated_at", "2019-12-06 02:15:23.839353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.841598"], ["updated_at", "2019-12-06 02:15:23.841598"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1271” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.844062"], ["last_sign_in_at", "2019-12-06 02:15:23.844062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.844628"], ["id", 1488]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1271"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1271], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:15:23.848362"], ["id", 1271]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1271 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3BQNoRPZ91S2KCp4IgiYJ.MMO6iIUJb8bWk2jYIra3MoIcsDiXBpO"], ["created_at", "2019-12-06 02:15:23.857605"], ["updated_at", "2019-12-06 02:15:23.857605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.859864"], ["updated_at", "2019-12-06 02:15:23.859864"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1272” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.862294"], ["last_sign_in_at", "2019-12-06 02:15:23.862294"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.862785"], ["id", 1489]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1272"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1272], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bUFkK3Z9EC7LcB8s0...ke0fagQT/U6owJDLyyC5IQ/TATMg3XYKu"], ["created_at", "2019-12-06 02:15:23.877057"], ["updated_at", "2019-12-06 02:15:23.877057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.879309"], ["updated_at", "2019-12-06 02:15:23.879309"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1273” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.881708"], ["last_sign_in_at", "2019-12-06 02:15:23.881708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.882248"], ["id", 1490]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1273"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1273], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jZX9L.NNtZHd0W68GKED.uqOZJL/Y6nsQDKYNNhb9M7drEhO/7pCO"], ["created_at", "2019-12-06 02:15:23.896839"], ["updated_at", "2019-12-06 02:15:23.896839"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.899407"], ["last_sign_in_at", "2019-12-06 02:15:23.899407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.899901"], ["id", 1491]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qyCv0CdurUyYitRP.PoyBO7qL8fBsMGBiQwRT793yRy93vziFHMVe"], ["created_at", "2019-12-06 02:15:23.910715"], ["updated_at", "2019-12-06 02:15:23.910715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.912989"], ["updated_at", "2019-12-06 02:15:23.912989"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1274” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.914847"], ["last_sign_in_at", "2019-12-06 02:15:23.914847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.915325"], ["id", 1492]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1274"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1274], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1274]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a6268LFkJR2vcoupWLVvleak/0ApK0tzrqYqcQX2paZcjiwKk.KAm"], ["created_at", "2019-12-06 02:15:23.927177"], ["updated_at", "2019-12-06 02:15:23.927177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.929670"], ["updated_at", "2019-12-06 02:15:23.929670"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1275” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.931802"], ["last_sign_in_at", "2019-12-06 02:15:23.931802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.932563"], ["id", 1493]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1275"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1275], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1275]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hO0vFOOaaNcwpcPN4ufaDOCozbhRvBpwodC12ScCdPQdsfuXdLxVO"], ["created_at", "2019-12-06 02:15:23.945874"], ["updated_at", "2019-12-06 02:15:23.945874"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.948236"], ["updated_at", "2019-12-06 02:15:23.948236"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1276” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.950430"], ["last_sign_in_at", "2019-12-06 02:15:23.950430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.951396"], ["id", 1494]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1276"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3kS0N4f4zcHQYyIw/WE5suKpot2/pVawHXoxn9d/OP8NfdXWJN3tG"], ["created_at", "2019-12-06 02:15:23.961938"], ["updated_at", "2019-12-06 02:15:23.961938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.964464"], ["updated_at", "2019-12-06 02:15:23.964464"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1277” for 127.0.0.1 at 2019-12-05 23:15:23 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.966522"], ["last_sign_in_at", "2019-12-06 02:15:23.966522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.967069"], ["id", 1495]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1277"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$mT9AeJMW9L3oVGmjmDrkv.mTh2zxat5hUiHuRfGJ7FCeL1p3uY2TW"], ["created_at", "2019-12-06 02:16:09.285968"], ["updated_at", "2019-12-06 02:16:09.285968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.294651"], ["updated_at", "2019-12-06 02:16:09.294651"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1278"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1278], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1278')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 151ms (Views: 107.9ms | ActiveRecord: 2.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZRjgnB8yZbMCiDP6t15PTOCw932o5ILD1fNeEFzAOXmISav6s5N/O"], ["created_at", "2019-12-06 02:16:09.455983"], ["updated_at", "2019-12-06 02:16:09.455983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.458298"], ["updated_at", "2019-12-06 02:16:09.458298"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1279], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1497], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1497], ["room_id", 1279], ["created_at", "2019-12-06 02:16:09.495320"], ["updated_at", "2019-12-06 02:16:09.495320"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1279"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1279], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1279')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Df7IBVxjrjXhylrMX9TAxuy6Kzlvbj2M1nWS4gebYO4NvMFykJQt2"], ["created_at", "2019-12-06 02:16:09.509283"], ["updated_at", "2019-12-06 02:16:09.509283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.511524"], ["updated_at", "2019-12-06 02:16:09.511524"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1280], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1498], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1498], ["room_id", 1280], ["created_at", "2019-12-06 02:16:09.515802"], ["updated_at", "2019-12-06 02:16:09.515802"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1280"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1280], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1280')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hYtS.7z6gVIlqJwZwJYNDefRigIIMFj1Q8J4v6uVgBGcsuMlk2FZu"], ["created_at", "2019-12-06 02:16:09.528954"], ["updated_at", "2019-12-06 02:16:09.528954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.531208"], ["updated_at", "2019-12-06 02:16:09.531208"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1281], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1499], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1499], ["room_id", 1281], ["created_at", "2019-12-06 02:16:09.535277"], ["updated_at", "2019-12-06 02:16:09.535277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1281"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1281], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1281')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$cCRB2JrCOVlijv7u06c.o.AdHgun0Xuy1u2bX7u/k2/gU14BAYOIS"], ["created_at", "2019-12-06 02:16:09.546330"], ["updated_at", "2019-12-06 02:16:09.546330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.548312"], ["updated_at", "2019-12-06 02:16:09.548312"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1282], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1500], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1500], ["room_id", 1282], ["created_at", "2019-12-06 02:16:09.551699"], ["updated_at", "2019-12-06 02:16:09.551699"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1282"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1282], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1282')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 104ms (Views: 73.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$UD754/0/OdembIo9LPbNMukX.al2/mSbbX7SzrE7eMYk8GagthTpa"], ["created_at", "2019-12-06 02:16:10.114610"], ["updated_at", "2019-12-06 02:16:10.114610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.116636"], ["updated_at", "2019-12-06 02:16:10.116636"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.132248"], ["last_sign_in_at", "2019-12-06 02:16:10.132248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.132842"], ["id", 1501]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1283"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1283], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1501], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1501], ["room_id", 1283], ["created_at", "2019-12-06 02:16:10.149657"], ["updated_at", "2019-12-06 02:16:10.149657"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1283], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$niYNdzqfnXmMoVwBdUb4AuRDKj77llNYXG7W8ym2E2fFbkj8T3dEC"], ["created_at", "2019-12-06 02:16:10.158372"], ["updated_at", "2019-12-06 02:16:10.158372"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.160317"], ["updated_at", "2019-12-06 02:16:10.160317"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.162565"], ["last_sign_in_at", "2019-12-06 02:16:10.162565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.163055"], ["id", 1502]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1284"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1284], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1502], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1502], ["room_id", 1284], ["created_at", "2019-12-06 02:16:10.168402"], ["updated_at", "2019-12-06 02:16:10.168402"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qWHrse.d4BzrRVWfgOfDGOxthhdjNeUyjRD7ywN85K83Ww4XDgiwy"], ["created_at", "2019-12-06 02:16:10.176840"], ["updated_at", "2019-12-06 02:16:10.176840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.178803"], ["updated_at", "2019-12-06 02:16:10.178803"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.181146"], ["last_sign_in_at", "2019-12-06 02:16:10.181146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.181884"], ["id", 1503]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1285"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1285], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$N86IfeEpxY6cypzxXAGPxujeTQyjyDKimYzGZYX0QXAIx74UvbM6a"], ["created_at", "2019-12-06 02:16:10.190565"], ["updated_at", "2019-12-06 02:16:10.190565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.193516"], ["updated_at", "2019-12-06 02:16:10.193516"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.195684"], ["last_sign_in_at", "2019-12-06 02:16:10.195684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.196166"], ["id", 1504]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1286"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$n48UPJie5BeGGlE2BaWo.uLQxwxE.yPS5cgiIMgYGCCntYKrX/d9a"], ["created_at", "2019-12-06 02:16:10.206062"], ["updated_at", "2019-12-06 02:16:10.206062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.208177"], ["updated_at", "2019-12-06 02:16:10.208177"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1287], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1505], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1505], ["room_id", 1287], ["created_at", "2019-12-06 02:16:10.212115"], ["updated_at", "2019-12-06 02:16:10.212115"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1287” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.214519"], ["last_sign_in_at", "2019-12-06 02:16:10.214519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.215038"], ["id", 1505]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1287"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1287], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1287')[0m
Rendered appointments/show.html.erb within layouts/application (20.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 346ms (Views: 328.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$s8hKFiBCcz59IfFJf.H12eh9fR1Kv6ioeOlgkF1Iz6iLQ2zayPs8m"], ["created_at", "2019-12-06 02:16:10.575137"], ["updated_at", "2019-12-06 02:16:10.575137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.577359"], ["updated_at", "2019-12-06 02:16:10.577359"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1288], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1506], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1506], ["room_id", 1288], ["created_at", "2019-12-06 02:16:10.582107"], ["updated_at", "2019-12-06 02:16:10.582107"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1288], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1506], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1506], ["room_id", 1288], ["created_at", "2019-12-06 02:16:10.586036"], ["updated_at", "2019-12-06 02:16:10.586036"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.588755"], ["last_sign_in_at", "2019-12-06 02:16:10.588755"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.589288"], ["id", 1506]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1506]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 36ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rSoO9uMHS6.IyCdN7nqqAubSNsQHUOHVvDSbHFb0lqtOVSbqe/2hu"], ["created_at", "2019-12-06 02:16:10.633691"], ["updated_at", "2019-12-06 02:16:10.633691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.636054"], ["updated_at", "2019-12-06 02:16:10.636054"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1289], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1507], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1507], ["room_id", 1289], ["created_at", "2019-12-06 02:16:10.640589"], ["updated_at", "2019-12-06 02:16:10.640589"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1289], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1507], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1507], ["room_id", 1289], ["created_at", "2019-12-06 02:16:10.656545"], ["updated_at", "2019-12-06 02:16:10.656545"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.659098"], ["last_sign_in_at", "2019-12-06 02:16:10.659098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.659603"], ["id", 1507]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1507]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KpBM.gJ8cZMJe1Xmlwnzbeehe6TyLIDRmDyHWvdxoMLSt159Rj8ka"], ["created_at", "2019-12-06 02:16:10.673220"], ["updated_at", "2019-12-06 02:16:10.673220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.675336"], ["updated_at", "2019-12-06 02:16:10.675336"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1290], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1508], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1508], ["room_id", 1290], ["created_at", "2019-12-06 02:16:10.679377"], ["updated_at", "2019-12-06 02:16:10.679377"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/689” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.681652"], ["last_sign_in_at", "2019-12-06 02:16:10.681652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.682206"], ["id", 1508]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"689"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 689], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 689]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SVneB0TW84ZQ.Fj3V4CsN.O5I07F7BU27qWA3oKKDpUXb3oHQU2BW"], ["created_at", "2019-12-06 02:16:10.696979"], ["updated_at", "2019-12-06 02:16:10.696979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.699293"], ["last_sign_in_at", "2019-12-06 02:16:10.699293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.699774"], ["id", 1509]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sj4I4JsjXk6YuT6frLZTpOmnpglDbNHdSrpQWByDGAU0AamuHIMiK"], ["created_at", "2019-12-06 02:16:10.744399"], ["updated_at", "2019-12-06 02:16:10.744399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.746711"], ["updated_at", "2019-12-06 02:16:10.746711"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1291], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1510], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1510], ["room_id", 1291], ["created_at", "2019-12-06 02:16:10.750981"], ["updated_at", "2019-12-06 02:16:10.750981"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1291], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1510], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1510], ["room_id", 1291], ["created_at", "2019-12-06 02:16:10.755411"], ["updated_at", "2019-12-06 02:16:10.755411"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.757743"], ["last_sign_in_at", "2019-12-06 02:16:10.757743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.758268"], ["id", 1510]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1291], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1510], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1510], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PHRLRs0HHWtoipflgp5yTO8QXIOipdEtRKcZZm2I3Txy0xfsEgiRi"], ["created_at", "2019-12-06 02:16:10.772354"], ["updated_at", "2019-12-06 02:16:10.772354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.774604"], ["updated_at", "2019-12-06 02:16:10.774604"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1292], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1511], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1511], ["room_id", 1292], ["created_at", "2019-12-06 02:16:10.778648"], ["updated_at", "2019-12-06 02:16:10.778648"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1292], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1511], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1511], ["room_id", 1292], ["created_at", "2019-12-06 02:16:10.782675"], ["updated_at", "2019-12-06 02:16:10.782675"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.784957"], ["last_sign_in_at", "2019-12-06 02:16:10.784957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.785507"], ["id", 1511]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1292], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1511], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1511], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P1geQJZbN488jYKOt36HV.Ws58HXNlFeXi5sFmSprybnXAjxUWmmK"], ["created_at", "2019-12-06 02:16:10.800944"], ["updated_at", "2019-12-06 02:16:10.800944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.803858"], ["updated_at", "2019-12-06 02:16:10.803858"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1293], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1512], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1512], ["room_id", 1293], ["created_at", "2019-12-06 02:16:10.808738"], ["updated_at", "2019-12-06 02:16:10.808738"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1293], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1512], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1512], ["room_id", 1293], ["created_at", "2019-12-06 02:16:10.812756"], ["updated_at", "2019-12-06 02:16:10.812756"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.815175"], ["last_sign_in_at", "2019-12-06 02:16:10.815175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.815653"], ["id", 1512]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2jz5orZcjd/MctzOoz/o7eGvn9qyeLVRkKKUaoQh0SCenvsn9iyea"], ["created_at", "2019-12-06 02:16:10.827702"], ["updated_at", "2019-12-06 02:16:10.827702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.830022"], ["updated_at", "2019-12-06 02:16:10.830022"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1294], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1513], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1513], ["room_id", 1294], ["created_at", "2019-12-06 02:16:10.834525"], ["updated_at", "2019-12-06 02:16:10.834525"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1294], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1513], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1513], ["room_id", 1294], ["created_at", "2019-12-06 02:16:10.839181"], ["updated_at", "2019-12-06 02:16:10.839181"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.842139"], ["last_sign_in_at", "2019-12-06 02:16:10.842139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.843095"], ["id", 1513]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rCpW8V8y6rLpA/QBkhTCDOSu./0s.L0sfNmIKIUTgnbBpzG8zEi/2"], ["created_at", "2019-12-06 02:16:10.857971"], ["updated_at", "2019-12-06 02:16:10.857971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.860714"], ["last_sign_in_at", "2019-12-06 02:16:10.860714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.861372"], ["id", 1514]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.5ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 67ms (Views: 50.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DhzK.eYcBBiwcgEemjesjefjcW7.46YkpmOxGfzNwr77.f1IDt4bi"], ["created_at", "2019-12-06 02:16:10.942275"], ["updated_at", "2019-12-06 02:16:10.942275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.945051"], ["last_sign_in_at", "2019-12-06 02:16:10.945051"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.945517"], ["id", 1515]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KB.WaJMCtlycyk3EXPVMqe85Yrw3bvu9mkJdiIsuGxj5wZRySY1si"], ["created_at", "2019-12-06 02:16:10.957741"], ["updated_at", "2019-12-06 02:16:10.957741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.962706"], ["last_sign_in_at", "2019-12-06 02:16:10.962706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.963416"], ["id", 1516]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.5ms) Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nzsfX5HBlxeU.BxqCsgQPuBqWCTCwxgquO5YBld0dKfeBkCa924ZC"], ["created_at", "2019-12-06 02:16:10.993526"], ["updated_at", "2019-12-06 02:16:10.993526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:16:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.996166"], ["last_sign_in_at", "2019-12-06 02:16:10.996166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.996664"], ["id", 1517]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MLOKmiU3SDFPF94qr2ZfXe.FGgEPxY6iAlsV.epB7u.qUTjOpcVhm"], ["created_at", "2019-12-06 02:16:11.022148"], ["updated_at", "2019-12-06 02:16:11.022148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.024636"], ["updated_at", "2019-12-06 02:16:11.024636"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1295” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.027314"], ["last_sign_in_at", "2019-12-06 02:16:11.027314"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.027876"], ["id", 1518]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1295"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1295], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pxWI5OYL/8tr5WST1zyoXuFcEJp/a9seTD3XI8ihroyrEyU6ddYau"], ["created_at", "2019-12-06 02:16:11.056170"], ["updated_at", "2019-12-06 02:16:11.056170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.059010"], ["updated_at", "2019-12-06 02:16:11.059010"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1296” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.061706"], ["last_sign_in_at", "2019-12-06 02:16:11.061706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.062594"], ["id", 1519]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1296"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1296], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.074639"], ["updated_at", "2019-12-06 02:16:11.074639"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1297” for 127.0.0.1 at 2019-12-05 23:16:11 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1297"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i5l55IEZXXKe/jlCqxVQROVa.FPlsLJFkEqOQd8lkW1zf40NHJq7O"], ["created_at", "2019-12-06 02:16:11.087493"], ["updated_at", "2019-12-06 02:16:11.087493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.090176"], ["updated_at", "2019-12-06 02:16:11.090176"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1298/edit” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.092688"], ["last_sign_in_at", "2019-12-06 02:16:11.092688"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.093188"], ["id", 1520]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1298"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1298], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 20ms (Views: 4.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yPGimRIj.K8KAGbHYtpKneX2yIV.VagsYjLHVs.b5Q.mBsRJ4OaIK"], ["created_at", "2019-12-06 02:16:11.123472"], ["updated_at", "2019-12-06 02:16:11.123472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.125867"], ["updated_at", "2019-12-06 02:16:11.125867"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1299/edit” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.128485"], ["last_sign_in_at", "2019-12-06 02:16:11.128485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.129059"], ["id", 1521]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1299"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1299], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.141984"], ["updated_at", "2019-12-06 02:16:11.141984"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1300” for 127.0.0.1 at 2019-12-05 23:16:11 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1300"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1DaQjF0/83jia.UAYuQyjeeppLG.DccJz4AzAf/YT0tfY4JHMO.Jm"], ["created_at", "2019-12-06 02:16:11.156201"], ["updated_at", "2019-12-06 02:16:11.156201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.159856"], ["last_sign_in_at", "2019-12-06 02:16:11.159856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.160403"], ["id", 1522]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.164216"], ["updated_at", "2019-12-06 02:16:11.164216"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VlKhfkbKx8cK1akN1Yz0.eE9plHDAKR9IwRbcKKr6YCIJKFw0clUG"], ["created_at", "2019-12-06 02:16:11.174638"], ["updated_at", "2019-12-06 02:16:11.174638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.177820"], ["last_sign_in_at", "2019-12-06 02:16:11.177820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.178474"], ["id", 1523]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.189811"], ["updated_at", "2019-12-06 02:16:11.189811"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B.9mVWuW90Bh4NQyCU8GM.PIxEnpeoBcVv0qkjtK3p/yexn2UYH0u"], ["created_at", "2019-12-06 02:16:11.198266"], ["updated_at", "2019-12-06 02:16:11.198266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.200818"], ["last_sign_in_at", "2019-12-06 02:16:11.200818"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.201323"], ["id", 1524]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8OUmWeJKWZgw1xvN7Cscz.jamaN746FrUXjY4.S5vFKVGNF1vJfpW"], ["created_at", "2019-12-06 02:16:11.213780"], ["updated_at", "2019-12-06 02:16:11.213780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.216353"], ["last_sign_in_at", "2019-12-06 02:16:11.216353"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.216829"], ["id", 1525]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UedUtCs..2/AtS39aVgfMuzUZiF4Uew3/xa5E/Ga5DSog5NTvBrd2"], ["created_at", "2019-12-06 02:16:11.228187"], ["updated_at", "2019-12-06 02:16:11.228187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.230685"], ["last_sign_in_at", "2019-12-06 02:16:11.230685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.231190"], ["id", 1526]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vsFs.BaqlR0ruuKxzWW4veJcqf25546DKdAkAhJRwzPTTB3qpECnS"], ["created_at", "2019-12-06 02:16:11.243462"], ["updated_at", "2019-12-06 02:16:11.243462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.245666"], ["updated_at", "2019-12-06 02:16:11.245666"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1303” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.247990"], ["last_sign_in_at", "2019-12-06 02:16:11.247990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.248483"], ["id", 1527]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1303"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1303], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:16:11.252502"], ["id", 1303]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1303 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NgTPQKz.zosQqezrAkH.mexbBcpSQmYZoDX75rMZqD.z4Tq5GTkDe"], ["created_at", "2019-12-06 02:16:11.261237"], ["updated_at", "2019-12-06 02:16:11.261237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.263484"], ["updated_at", "2019-12-06 02:16:11.263484"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1304” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.265821"], ["last_sign_in_at", "2019-12-06 02:16:11.265821"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.266468"], ["id", 1528]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1304"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1304], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:16:11.270854"], ["id", 1304]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1304 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$53Jd0MwGJs6WG/.C9oQH.OeZatNTFJpqQHrUW.1vR0zpu2IvNYtTG"], ["created_at", "2019-12-06 02:16:11.279884"], ["updated_at", "2019-12-06 02:16:11.279884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.282130"], ["updated_at", "2019-12-06 02:16:11.282130"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1305” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.284276"], ["last_sign_in_at", "2019-12-06 02:16:11.284276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.284771"], ["id", 1529]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1305"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1305], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FdkvnseQpwS1Q8b8XTspC.pThfaQFDSmGr3Erv2H9mn0Yr9y4.kEm"], ["created_at", "2019-12-06 02:16:11.299495"], ["updated_at", "2019-12-06 02:16:11.299495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.301776"], ["updated_at", "2019-12-06 02:16:11.301776"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1306” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.304753"], ["last_sign_in_at", "2019-12-06 02:16:11.304753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.305452"], ["id", 1530]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1306"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1306], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zDmWK6thR5sEjHGWScE4ruTZwp2dCoLd.WsUpj3N5sIEaeNxAOZtq"], ["created_at", "2019-12-06 02:16:11.320138"], ["updated_at", "2019-12-06 02:16:11.320138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.322809"], ["last_sign_in_at", "2019-12-06 02:16:11.322809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.323491"], ["id", 1531]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cbKXPQhcYx.hHyvp6icFGeqUWILGEmyNEyhDSo9FFSNfciTJn9dAy"], ["created_at", "2019-12-06 02:16:11.334217"], ["updated_at", "2019-12-06 02:16:11.334217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.336958"], ["updated_at", "2019-12-06 02:16:11.336958"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1307” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.339123"], ["last_sign_in_at", "2019-12-06 02:16:11.339123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.339681"], ["id", 1532]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1307"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1307], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1307]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sVjAz6rVxRsTrL89MLORv.x0frdYn9Uxf4qNgok.PUvf8xI/u4yx."], ["created_at", "2019-12-06 02:16:11.350824"], ["updated_at", "2019-12-06 02:16:11.350824"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.353318"], ["updated_at", "2019-12-06 02:16:11.353318"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1308” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.355512"], ["last_sign_in_at", "2019-12-06 02:16:11.355512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.356217"], ["id", 1533]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1308"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1308], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1308]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$28G4guIWvWDfLR.ZsPkLn.bB39Xv0Zgn06u0JXDvhxFgh3n0fOd76"], ["created_at", "2019-12-06 02:16:11.367731"], ["updated_at", "2019-12-06 02:16:11.367731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.370231"], ["updated_at", "2019-12-06 02:16:11.370231"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1309” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.372310"], ["last_sign_in_at", "2019-12-06 02:16:11.372310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.372808"], ["id", 1534]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1309"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3xEcAOyJRTZvXm2QRRVr0.W4YGjCVAM2n5C6gliH6pmOXIIvyJRHS"], ["created_at", "2019-12-06 02:16:11.381884"], ["updated_at", "2019-12-06 02:16:11.381884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.384298"], ["updated_at", "2019-12-06 02:16:11.384298"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1310” for 127.0.0.1 at 2019-12-05 23:16:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.386644"], ["last_sign_in_at", "2019-12-06 02:16:11.386644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.387558"], ["id", 1535]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1310"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (40.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (21.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (46.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (116.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$A/dLHlDixYBYo7eKS5AcB.k94vhLvoSV4T1d0GNrMgzTdsZ.zh9hS"], ["created_at", "2019-12-11 22:53:32.779629"], ["updated_at", "2019-12-11 22:53:32.779629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (69.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:32.904937"], ["updated_at", "2019-12-11 22:53:32.904937"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1311"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1311], ["LIMIT", 1]]
[1m[36mAppointment Load (35.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1311')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 277ms (Views: 154.0ms | ActiveRecord: 37.1ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (53.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$aIx1aaABaJAvySu0r4.EXejddPnpYDSkJPnA.D/K44BnOym51/yjK"], ["created_at", "2019-12-11 22:53:33.348683"], ["updated_at", "2019-12-11 22:53:33.348683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.351419"], ["updated_at", "2019-12-11 22:53:33.351419"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1312], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1537], ["LIMIT", 1]]
[1m[35mSQL (31.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1537], ["room_id", 1312], ["created_at", "2019-12-11 22:53:33.505025"], ["updated_at", "2019-12-11 22:53:33.505025"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1312"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1312], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1312')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kJo5xenq/j14PwR2bU6rretxHSM7wN6F2MY9uNiNwAhMO5mTcmP4."], ["created_at", "2019-12-11 22:53:33.608793"], ["updated_at", "2019-12-11 22:53:33.608793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.611286"], ["updated_at", "2019-12-11 22:53:33.611286"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1313], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1538], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1538], ["room_id", 1313], ["created_at", "2019-12-11 22:53:33.616425"], ["updated_at", "2019-12-11 22:53:33.616425"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1313"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1313], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1313')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kz8ef1wgpqRSJmtsNru2DOJM8TUgJIKWJ5XZtVu5LqNps8o9WRFHK"], ["created_at", "2019-12-11 22:53:33.628310"], ["updated_at", "2019-12-11 22:53:33.628310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.631485"], ["updated_at", "2019-12-11 22:53:33.631485"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1314], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1539], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1539], ["room_id", 1314], ["created_at", "2019-12-11 22:53:33.635792"], ["updated_at", "2019-12-11 22:53:33.635792"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1314"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1314], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1314')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7Fyl6TZn/m9qfZ8monTLVeOrTeFzzEfg1o57K3VTWtZpjLGmPZILa"], ["created_at", "2019-12-11 22:53:33.646525"], ["updated_at", "2019-12-11 22:53:33.646525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.649635"], ["updated_at", "2019-12-11 22:53:33.649635"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1315], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1540], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1540], ["room_id", 1315], ["created_at", "2019-12-11 22:53:33.654077"], ["updated_at", "2019-12-11 22:53:33.654077"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1315"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1315], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1315')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 114ms (Views: 81.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$uHuF1etSdkQ6j3gIwT1wdeWrUbAQxhwsoh5vpGgX3qbxykTK1uNGW"], ["created_at", "2019-12-11 22:53:35.111068"], ["updated_at", "2019-12-11 22:53:35.111068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.113938"], ["updated_at", "2019-12-11 22:53:35.113938"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (72.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.203606"], ["last_sign_in_at", "2019-12-11 22:53:35.203606"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.204405"], ["id", 1541]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1316"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1316], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1541], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1541], ["room_id", 1316], ["created_at", "2019-12-11 22:53:35.295458"], ["updated_at", "2019-12-11 22:53:35.295458"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1316], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$LtmbRvCmVIuQJDRuL/VFEerm9AACtGzxRGBw87tf.evPZUA4thQfC"], ["created_at", "2019-12-11 22:53:35.306062"], ["updated_at", "2019-12-11 22:53:35.306062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.308241"], ["updated_at", "2019-12-11 22:53:35.308241"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.310683"], ["last_sign_in_at", "2019-12-11 22:53:35.310683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.311350"], ["id", 1542]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1317"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1317], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1542], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1542], ["room_id", 1317], ["created_at", "2019-12-11 22:53:35.317324"], ["updated_at", "2019-12-11 22:53:35.317324"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$DmIxzRag6yxC3wf7aPtKG.rhGWBPgAilzxn5d7BdsXcWTTWYJsJ86"], ["created_at", "2019-12-11 22:53:35.326286"], ["updated_at", "2019-12-11 22:53:35.326286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.328430"], ["updated_at", "2019-12-11 22:53:35.328430"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.331445"], ["last_sign_in_at", "2019-12-11 22:53:35.331445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.332034"], ["id", 1543]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1318"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1318], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$cC5uZTB4jkHtuMhCz/xepO0C7R95blkYqeaScmqTGSSkuyVhCvXZO"], ["created_at", "2019-12-11 22:53:35.341530"], ["updated_at", "2019-12-11 22:53:35.341530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.343847"], ["updated_at", "2019-12-11 22:53:35.343847"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.346579"], ["last_sign_in_at", "2019-12-11 22:53:35.346579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.347546"], ["id", 1544]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1319"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$RCRvJyX5MioxxczAt46ivOP7k8C0q9yD3DWeT4kanpPEyTM2sEzmi"], ["created_at", "2019-12-11 22:53:35.358226"], ["updated_at", "2019-12-11 22:53:35.358226"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.360931"], ["updated_at", "2019-12-11 22:53:35.360931"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1320], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1545], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1545], ["room_id", 1320], ["created_at", "2019-12-11 22:53:35.370574"], ["updated_at", "2019-12-11 22:53:35.370574"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1320” for 127.0.0.1 at 2019-12-11 19:53:35 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.373289"], ["last_sign_in_at", "2019-12-11 22:53:35.373289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.373857"], ["id", 1545]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1320"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1320], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1320')[0m
Rendered appointments/show.html.erb within layouts/application (164.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)
Completed 200 OK in 972ms (Views: 953.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1euIryZLWeY9AHvX4OOWGOyByaHhGQg53hoQy67DSshJPrSm4BDfm"], ["created_at", "2019-12-11 22:53:36.356912"], ["updated_at", "2019-12-11 22:53:36.356912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.359315"], ["updated_at", "2019-12-11 22:53:36.359315"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1321], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1546], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1546], ["room_id", 1321], ["created_at", "2019-12-11 22:53:36.364504"], ["updated_at", "2019-12-11 22:53:36.364504"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1321], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1546], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1546], ["room_id", 1321], ["created_at", "2019-12-11 22:53:36.368530"], ["updated_at", "2019-12-11 22:53:36.368530"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.370933"], ["last_sign_in_at", "2019-12-11 22:53:36.370933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.371459"], ["id", 1546]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1546]] Rendered appointments/my_appointments.html.erb within layouts/application (17.4ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 74ms (Views: 19.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3O5QYsZPPzdqyIcPMo4Sm.tjZ/JLpaHBvsIcHHlhlfH6UCHCdb/EK"], ["created_at", "2019-12-11 22:53:36.453914"], ["updated_at", "2019-12-11 22:53:36.453914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.456201"], ["updated_at", "2019-12-11 22:53:36.456201"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1322], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1547], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1547], ["room_id", 1322], ["created_at", "2019-12-11 22:53:36.460091"], ["updated_at", "2019-12-11 22:53:36.460091"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1322], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1547], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1547], ["room_id", 1322], ["created_at", "2019-12-11 22:53:36.465806"], ["updated_at", "2019-12-11 22:53:36.465806"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.468397"], ["last_sign_in_at", "2019-12-11 22:53:36.468397"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.469037"], ["id", 1547]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1547]] Rendered appointments/my_appointments.html.erb within layouts/application (2.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rSPrIYL2Gi5MNUApqljlZumeNRC/vev1C6BNG17XEKFgihxn/oeeW"], ["created_at", "2019-12-11 22:53:36.484924"], ["updated_at", "2019-12-11 22:53:36.484924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.487809"], ["updated_at", "2019-12-11 22:53:36.487809"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1323], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1548], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1548], ["room_id", 1323], ["created_at", "2019-12-11 22:53:36.492883"], ["updated_at", "2019-12-11 22:53:36.492883"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/709” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.495507"], ["last_sign_in_at", "2019-12-11 22:53:36.495507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.496012"], ["id", 1548]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"709"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 709], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 709]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bQYfOGY1KZ.Bq9uZQLNNxOXx0yIZb9bDlNHavPAOYVixvJdB4Xuie"], ["created_at", "2019-12-11 22:53:36.511016"], ["updated_at", "2019-12-11 22:53:36.511016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.514117"], ["last_sign_in_at", "2019-12-11 22:53:36.514117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.515057"], ["id", 1549]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 38ms (Views: 20.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ejDLJ5fBf8fiTOXnMbafqOJXOaRToXtDg9RHyqs6XCoU86KJNBbYK"], ["created_at", "2019-12-11 22:53:36.563044"], ["updated_at", "2019-12-11 22:53:36.563044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.565837"], ["updated_at", "2019-12-11 22:53:36.565837"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1324], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1550], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1550], ["room_id", 1324], ["created_at", "2019-12-11 22:53:36.569697"], ["updated_at", "2019-12-11 22:53:36.569697"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1324], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1550], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1550], ["room_id", 1324], ["created_at", "2019-12-11 22:53:36.573945"], ["updated_at", "2019-12-11 22:53:36.573945"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.576425"], ["last_sign_in_at", "2019-12-11 22:53:36.576425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.576964"], ["id", 1550]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1324], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1550], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1550], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1I0xAk7I/nWvxJk3pKdsfOT87nMvLUkK84aLmSqTIXIJLFLW2gAjS"], ["created_at", "2019-12-11 22:53:36.592427"], ["updated_at", "2019-12-11 22:53:36.592427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.594753"], ["updated_at", "2019-12-11 22:53:36.594753"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1325], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1551], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1551], ["room_id", 1325], ["created_at", "2019-12-11 22:53:36.600176"], ["updated_at", "2019-12-11 22:53:36.600176"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1325], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1551], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1551], ["room_id", 1325], ["created_at", "2019-12-11 22:53:36.604961"], ["updated_at", "2019-12-11 22:53:36.604961"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.607561"], ["last_sign_in_at", "2019-12-11 22:53:36.607561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.608122"], ["id", 1551]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1325], ["LIMIT", 1]] [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1551], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1551], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pHn7Tez/jpJF1ztbxhvb1.SldhSKOwuUkJ5uDsmgxKqAI2.caDtYa"], ["created_at", "2019-12-11 22:53:36.624906"], ["updated_at", "2019-12-11 22:53:36.624906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.627357"], ["updated_at", "2019-12-11 22:53:36.627357"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1326], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1552], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1552], ["room_id", 1326], ["created_at", "2019-12-11 22:53:36.632906"], ["updated_at", "2019-12-11 22:53:36.632906"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1326], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1552], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1552], ["room_id", 1326], ["created_at", "2019-12-11 22:53:36.637226"], ["updated_at", "2019-12-11 22:53:36.637226"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.639706"], ["last_sign_in_at", "2019-12-11 22:53:36.639706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.640237"], ["id", 1552]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8TAZadLHqi82a9rXF2TJNuhNnPnyEGgePBosS.XTFf3BGG8fkIM6u"], ["created_at", "2019-12-11 22:53:36.653938"], ["updated_at", "2019-12-11 22:53:36.653938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.656293"], ["updated_at", "2019-12-11 22:53:36.656293"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1327], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1553], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1553], ["room_id", 1327], ["created_at", "2019-12-11 22:53:36.661076"], ["updated_at", "2019-12-11 22:53:36.661076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1327], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1553], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1553], ["room_id", 1327], ["created_at", "2019-12-11 22:53:36.666717"], ["updated_at", "2019-12-11 22:53:36.666717"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.669354"], ["last_sign_in_at", "2019-12-11 22:53:36.669354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.670127"], ["id", 1553]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1uWpPh2kZrm9ApvDBF3qVeAlRDiyv.SLv/VmE6Z1nK6tFDme2XMgS"], ["created_at", "2019-12-11 22:53:36.689556"], ["updated_at", "2019-12-11 22:53:36.689556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.692544"], ["last_sign_in_at", "2019-12-11 22:53:36.692544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.693317"], ["id", 1554]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (47.0ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 108ms (Views: 90.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aZgf3L3927mddFjOHXQIxuqDtXSztfWSl5slOFlR/MFJzRigLCfE."], ["created_at", "2019-12-11 22:53:36.816584"], ["updated_at", "2019-12-11 22:53:36.816584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.819691"], ["last_sign_in_at", "2019-12-11 22:53:36.819691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.820311"], ["id", 1555]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2E5lmqvKLDMp62FLdOffGup4mo5uPObD34y3kh8atSjEJ7HH706BG"], ["created_at", "2019-12-11 22:53:36.833192"], ["updated_at", "2019-12-11 22:53:36.833192"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.836073"], ["last_sign_in_at", "2019-12-11 22:53:36.836073"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.836641"], ["id", 1556]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 23ms (Views: 4.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V2wth58jezLfVBLi5J15h.wuFdibCXf8/1hJMejj6lZIGbirI8hP6"], ["created_at", "2019-12-11 22:53:36.869342"], ["updated_at", "2019-12-11 22:53:36.869342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.872181"], ["last_sign_in_at", "2019-12-11 22:53:36.872181"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.872722"], ["id", 1557]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (1.3ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 19:53:36 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h58tNRqUFqsVFK/vpitON.qyam0U0O8ivah0pupo3EwqG5Xhz.8Gu"], ["created_at", "2019-12-11 22:53:36.897928"], ["updated_at", "2019-12-11 22:53:36.897928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.900425"], ["updated_at", "2019-12-11 22:53:36.900425"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1328” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.903069"], ["last_sign_in_at", "2019-12-11 22:53:36.903069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.903701"], ["id", 1558]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1328"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1328], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u1Yn5DyWb7NRnD0Ceia05.3nkt5jjWqiazE8b36yl5UD.bW75Svy6"], ["created_at", "2019-12-11 22:53:36.935074"], ["updated_at", "2019-12-11 22:53:36.935074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.937915"], ["updated_at", "2019-12-11 22:53:36.937915"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1329” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.940795"], ["last_sign_in_at", "2019-12-11 22:53:36.940795"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.941670"], ["id", 1559]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1329"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1329], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.953528"], ["updated_at", "2019-12-11 22:53:36.953528"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1330” for 127.0.0.1 at 2019-12-11 19:53:36 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1330"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yJlHDKqzqfO8DhVmwNIpUeNcIOU4zEzDQUPzSYla4J8yYsOK42KJ."], ["created_at", "2019-12-11 22:53:36.965878"], ["updated_at", "2019-12-11 22:53:36.965878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.968422"], ["updated_at", "2019-12-11 22:53:36.968422"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1331/edit” for 127.0.0.1 at 2019-12-11 19:53:36 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.971037"], ["last_sign_in_at", "2019-12-11 22:53:36.971037"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.971547"], ["id", 1560]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1331"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1331], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 23ms (Views: 5.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5LZibcaby0oKAt9.zOUxZuAVtugiwI9b5llZKHFE1bGeELVC7eixS"], ["created_at", "2019-12-11 22:53:37.003837"], ["updated_at", "2019-12-11 22:53:37.003837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.006275"], ["updated_at", "2019-12-11 22:53:37.006275"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1332/edit” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.008761"], ["last_sign_in_at", "2019-12-11 22:53:37.008761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.009311"], ["id", 1561]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1332"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1332], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.9ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.032076"], ["updated_at", "2019-12-11 22:53:37.032076"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1333” for 127.0.0.1 at 2019-12-11 19:53:37 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1333"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W0objr2s.bmbOqwXcI23ROlnaJB03vamFcd0VYW3gQjok7HH9Lcx6"], ["created_at", "2019-12-11 22:53:37.043917"], ["updated_at", "2019-12-11 22:53:37.043917"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.047211"], ["last_sign_in_at", "2019-12-11 22:53:37.047211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.048246"], ["id", 1562]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.051904"], ["updated_at", "2019-12-11 22:53:37.051904"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5QYKSxs4yWYs.r7vGrHIWuS1LDzRZzNn1QdbTZsAmKElQD1.vbywG"], ["created_at", "2019-12-11 22:53:37.060343"], ["updated_at", "2019-12-11 22:53:37.060343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.063700"], ["last_sign_in_at", "2019-12-11 22:53:37.063700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.064678"], ["id", 1563]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.068693"], ["updated_at", "2019-12-11 22:53:37.068693"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eBPju5m68vVOIQHDev4IN.qNTJaBOrOPWQYb32nww.Gs022gJN/iW"], ["created_at", "2019-12-11 22:53:37.077194"], ["updated_at", "2019-12-11 22:53:37.077194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.081392"], ["last_sign_in_at", "2019-12-11 22:53:37.081392"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.082230"], ["id", 1564]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (15.9ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 16.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kLgBEhQpc8ydh7CvQaKXleSOFeeiGD9orntlDAbIgL21.U7Cvn/Cm"], ["created_at", "2019-12-11 22:53:37.109103"], ["updated_at", "2019-12-11 22:53:37.109103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.111802"], ["last_sign_in_at", "2019-12-11 22:53:37.111802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.112314"], ["id", 1565]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x0fR7itGLJWs3hBlJuqd7eTzLGoCaZlrWfhBJ.PfzFWsvRnpnNpJu"], ["created_at", "2019-12-11 22:53:37.124143"], ["updated_at", "2019-12-11 22:53:37.124143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.126673"], ["last_sign_in_at", "2019-12-11 22:53:37.126673"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.127178"], ["id", 1566]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VSb/A6iFGWEMLPqIRIc1MObOfW0eKT9l/PSBUOTH2FCYm4ddUVYRa"], ["created_at", "2019-12-11 22:53:37.138805"], ["updated_at", "2019-12-11 22:53:37.138805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.141547"], ["updated_at", "2019-12-11 22:53:37.141547"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1336” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.144765"], ["last_sign_in_at", "2019-12-11 22:53:37.144765"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.145692"], ["id", 1567]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1336"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1336], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 22:53:37.150497"], ["id", 1336]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1336 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JDpoLf07eU.RPDQATlcDaucVsKVVj6OvFB1tPezjQNE9OEgewjgBO"], ["created_at", "2019-12-11 22:53:37.158379"], ["updated_at", "2019-12-11 22:53:37.158379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.160720"], ["updated_at", "2019-12-11 22:53:37.160720"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1337” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.164385"], ["last_sign_in_at", "2019-12-11 22:53:37.164385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.165140"], ["id", 1568]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1337"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1337], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 22:53:37.169144"], ["id", 1337]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1337 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XM8Vq4lMOrSOBG1C0OLBneq73LKgjqMuBX.ThKikAIusoL8LnGQg."], ["created_at", "2019-12-11 22:53:37.178248"], ["updated_at", "2019-12-11 22:53:37.178248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.181684"], ["updated_at", "2019-12-11 22:53:37.181684"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1338” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.184410"], ["last_sign_in_at", "2019-12-11 22:53:37.184410"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.184943"], ["id", 1569]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1338"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1338], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PmdlxZTCFgQV0Q.0QjZxtub3sK7lxcFk4lTKHEE05R0YxQh8tI9uO"], ["created_at", "2019-12-11 22:53:37.199862"], ["updated_at", "2019-12-11 22:53:37.199862"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.202542"], ["updated_at", "2019-12-11 22:53:37.202542"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1339” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.205081"], ["last_sign_in_at", "2019-12-11 22:53:37.205081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.205733"], ["id", 1570]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1339"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1339], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VSzLW3RxE/0R/lwjTyZtUuy.hRRMpGzXioyqnE9SyXbTkIAOVlSiG"], ["created_at", "2019-12-11 22:53:37.222063"], ["updated_at", "2019-12-11 22:53:37.222063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.224676"], ["last_sign_in_at", "2019-12-11 22:53:37.224676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.225183"], ["id", 1571]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JtQw4V00UvVjeQhxmYdnxedFmU5K6YoV.lFpmKGgBVfkQkxUw0Ns6"], ["created_at", "2019-12-11 22:53:37.236220"], ["updated_at", "2019-12-11 22:53:37.236220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.238489"], ["updated_at", "2019-12-11 22:53:37.238489"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1340” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.240533"], ["last_sign_in_at", "2019-12-11 22:53:37.240533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.241235"], ["id", 1572]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1340"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1340], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1340]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VlTyZ8GhKAbhPZtnyAkp6uUEm5iUKdXDR4k2nFZyfiTRygCfoAWDe"], ["created_at", "2019-12-11 22:53:37.253386"], ["updated_at", "2019-12-11 22:53:37.253386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.255772"], ["updated_at", "2019-12-11 22:53:37.255772"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1341” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.257823"], ["last_sign_in_at", "2019-12-11 22:53:37.257823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.258363"], ["id", 1573]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1341"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1341], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1341]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hnHotn6a.a81RX5kPopwzeyf26oZTDsdUVHEvsCSZPDY7KLQReZK6"], ["created_at", "2019-12-11 22:53:37.270790"], ["updated_at", "2019-12-11 22:53:37.270790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.272900"], ["updated_at", "2019-12-11 22:53:37.272900"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1342” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.274822"], ["last_sign_in_at", "2019-12-11 22:53:37.274822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.275376"], ["id", 1574]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1342"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EhPZBUEwj5ev76DHPIuXtOxiRrcBrzhMpyJZxvMNIKXI1jC.WUeaq"], ["created_at", "2019-12-11 22:53:37.285705"], ["updated_at", "2019-12-11 22:53:37.285705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.288048"], ["updated_at", "2019-12-11 22:53:37.288048"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1343” for 127.0.0.1 at 2019-12-11 19:53:37 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.290077"], ["last_sign_in_at", "2019-12-11 22:53:37.290077"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.290735"], ["id", 1575]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1343"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.Jra/OnmIoXv3olSGtlrMuC7KSKdOlecn4YUgyRC96JrzJEUX8j36"], ["created_at", "2019-12-11 23:06:37.113047"], ["updated_at", "2019-12-11 23:06:37.113047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.122752"], ["updated_at", "2019-12-11 23:06:37.122752"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1344"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1344], ["LIMIT", 1]]
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1344')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 159ms (Views: 113.5ms | ActiveRecord: 2.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$s0udHnzec9GD7yaRxfJTeO9Pxa7NFpRXO3jyxZMIGBAN4Me9OpnUK"], ["created_at", "2019-12-11 23:06:37.292006"], ["updated_at", "2019-12-11 23:06:37.292006"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.294379"], ["updated_at", "2019-12-11 23:06:37.294379"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1345], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1577], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1577], ["room_id", 1345], ["created_at", "2019-12-11 23:06:37.334742"], ["updated_at", "2019-12-11 23:06:37.334742"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1345"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1345], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1345')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ju5km/D6qsywg4VlOgXXSuNMZzLrBj28VzFf7Yj2H4GBAL8.XrTCW"], ["created_at", "2019-12-11 23:06:37.349430"], ["updated_at", "2019-12-11 23:06:37.349430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.351764"], ["updated_at", "2019-12-11 23:06:37.351764"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1346], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1578], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1578], ["room_id", 1346], ["created_at", "2019-12-11 23:06:37.356087"], ["updated_at", "2019-12-11 23:06:37.356087"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1346"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1346], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1346')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sAYS7i0zkM1eIaP9wv.j7OGHh21pS2W1EO7SS65HTKVKI9YfiLAly"], ["created_at", "2019-12-11 23:06:37.368058"], ["updated_at", "2019-12-11 23:06:37.368058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.370369"], ["updated_at", "2019-12-11 23:06:37.370369"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1347], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1579], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1579], ["room_id", 1347], ["created_at", "2019-12-11 23:06:37.375088"], ["updated_at", "2019-12-11 23:06:37.375088"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1347"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1347], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1347')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.brgOjO5Wzlj2I4AF5QCvuw/TrsYYEmlcZRcFRtwpBUZqRo171c86"], ["created_at", "2019-12-11 23:06:37.386946"], ["updated_at", "2019-12-11 23:06:37.386946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.390541"], ["updated_at", "2019-12-11 23:06:37.390541"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1348], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1580], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1580], ["room_id", 1348], ["created_at", "2019-12-11 23:06:37.396156"], ["updated_at", "2019-12-11 23:06:37.396156"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1348"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1348], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1348')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 111ms (Views: 78.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$OYoArcsJEMy9TtrGqqQDSuiL1GnbTvf0eM5xlb9Ck4V9wyVcnRX/6"], ["created_at", "2019-12-11 23:06:37.998933"], ["updated_at", "2019-12-11 23:06:37.998933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.001118"], ["updated_at", "2019-12-11 23:06:38.001118"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.017422"], ["last_sign_in_at", "2019-12-11 23:06:38.017422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.018076"], ["id", 1581]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1349"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1349], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1581], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1581], ["room_id", 1349], ["created_at", "2019-12-11 23:06:38.035268"], ["updated_at", "2019-12-11 23:06:38.035268"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1349], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2K6hUh6qEg20Nnk/sBldxe6l4/8xK2PXaTBjZCe2Nyqp9H78Ky.M2"], ["created_at", "2019-12-11 23:06:38.044631"], ["updated_at", "2019-12-11 23:06:38.044631"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.047879"], ["updated_at", "2019-12-11 23:06:38.047879"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.050923"], ["last_sign_in_at", "2019-12-11 23:06:38.050923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.051552"], ["id", 1582]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1350"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1350], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1582], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1582], ["room_id", 1350], ["created_at", "2019-12-11 23:06:38.058596"], ["updated_at", "2019-12-11 23:06:38.058596"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$96Mf8quZf4sCjPkWSgq5xuG/hh8MnTf7Jj3sUD.veOta.M4z7Oiua"], ["created_at", "2019-12-11 23:06:38.066660"], ["updated_at", "2019-12-11 23:06:38.066660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.068769"], ["updated_at", "2019-12-11 23:06:38.068769"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.071063"], ["last_sign_in_at", "2019-12-11 23:06:38.071063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.071670"], ["id", 1583]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1351"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1351], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1ILMaBqkUlzEeUg5t.YgfONe.hEkNICggDW8qzDaXe0ep9EtfB3AS"], ["created_at", "2019-12-11 23:06:38.086083"], ["updated_at", "2019-12-11 23:06:38.086083"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.088472"], ["updated_at", "2019-12-11 23:06:38.088472"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.091211"], ["last_sign_in_at", "2019-12-11 23:06:38.091211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.091760"], ["id", 1584]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1352"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3xYt6ZXxNT6gbfYLdKTEf.xd37Dqsb3A2s4LFJRxLYrWYG98Mqs2G"], ["created_at", "2019-12-11 23:06:38.101658"], ["updated_at", "2019-12-11 23:06:38.101658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.103838"], ["updated_at", "2019-12-11 23:06:38.103838"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1353], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1585], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1585], ["room_id", 1353], ["created_at", "2019-12-11 23:06:38.107962"], ["updated_at", "2019-12-11 23:06:38.107962"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1353” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.110359"], ["last_sign_in_at", "2019-12-11 23:06:38.110359"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.110844"], ["id", 1585]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1353"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1353], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1353')[0m
Rendered appointments/show.html.erb within layouts/application (21.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 598ms (Views: 580.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$w2/7zn1p/SpjzMVhdRm/k.oWu4a6yNPk0gMU/oJhMp5G1jSAG2T.q"], ["created_at", "2019-12-11 23:06:38.718678"], ["updated_at", "2019-12-11 23:06:38.718678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.720997"], ["updated_at", "2019-12-11 23:06:38.720997"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1354], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1586], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1586], ["room_id", 1354], ["created_at", "2019-12-11 23:06:38.725883"], ["updated_at", "2019-12-11 23:06:38.725883"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1354], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1586], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1586], ["room_id", 1354], ["created_at", "2019-12-11 23:06:38.729988"], ["updated_at", "2019-12-11 23:06:38.729988"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.732551"], ["last_sign_in_at", "2019-12-11 23:06:38.732551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.733119"], ["id", 1586]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1586]] Rendered appointments/my_appointments.html.erb within layouts/application (41.0ms)
Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iDtV2mKY.521xuMQLVNTdefRzS5h3nyQVwGhCzWp3r1X4neJ1hA2K"], ["created_at", "2019-12-11 23:06:38.816121"], ["updated_at", "2019-12-11 23:06:38.816121"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.818248"], ["updated_at", "2019-12-11 23:06:38.818248"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1355], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1587], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1587], ["room_id", 1355], ["created_at", "2019-12-11 23:06:38.821879"], ["updated_at", "2019-12-11 23:06:38.821879"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1355], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1587], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1587], ["room_id", 1355], ["created_at", "2019-12-11 23:06:38.826381"], ["updated_at", "2019-12-11 23:06:38.826381"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.828879"], ["last_sign_in_at", "2019-12-11 23:06:38.828879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.829427"], ["id", 1587]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1587]] Rendered appointments/my_appointments.html.erb within layouts/application (18.1ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$C5VTxKVuKK/dPjeLRUEkk.tAfwpRhXlvu024zh41XsLFKxWziRUiq"], ["created_at", "2019-12-11 23:06:38.858263"], ["updated_at", "2019-12-11 23:06:38.858263"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.860642"], ["updated_at", "2019-12-11 23:06:38.860642"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1356], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1588], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1588], ["room_id", 1356], ["created_at", "2019-12-11 23:06:38.864744"], ["updated_at", "2019-12-11 23:06:38.864744"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/729” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.867139"], ["last_sign_in_at", "2019-12-11 23:06:38.867139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.867720"], ["id", 1588]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"729"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 729], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 729]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xJmueiefMfrAhDogLKV59uxbfW1frFOD4tyB9o7f73XkZpzrJC6g2"], ["created_at", "2019-12-11 23:06:38.882047"], ["updated_at", "2019-12-11 23:06:38.882047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.884481"], ["last_sign_in_at", "2019-12-11 23:06:38.884481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.885033"], ["id", 1589]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (1.0ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 37ms (Views: 19.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rY3ZHPzRVog.530HaY.gg.4yWUdbYijk10UMniAkr1d9sQl./fXZS"], ["created_at", "2019-12-11 23:06:38.931278"], ["updated_at", "2019-12-11 23:06:38.931278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.933592"], ["updated_at", "2019-12-11 23:06:38.933592"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1357], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1590], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1590], ["room_id", 1357], ["created_at", "2019-12-11 23:06:38.940092"], ["updated_at", "2019-12-11 23:06:38.940092"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1357], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1590], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1590], ["room_id", 1357], ["created_at", "2019-12-11 23:06:38.944614"], ["updated_at", "2019-12-11 23:06:38.944614"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.947094"], ["last_sign_in_at", "2019-12-11 23:06:38.947094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.947629"], ["id", 1590]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1357], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1590], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1590], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BgdeDDfWshk7x9xI9tEwgOct9xgBna42jK9Rha7cSxEJdzlbDLvU."], ["created_at", "2019-12-11 23:06:38.963091"], ["updated_at", "2019-12-11 23:06:38.963091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.965585"], ["updated_at", "2019-12-11 23:06:38.965585"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1358], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1591], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1591], ["room_id", 1358], ["created_at", "2019-12-11 23:06:38.969829"], ["updated_at", "2019-12-11 23:06:38.969829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1358], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1591], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1591], ["room_id", 1358], ["created_at", "2019-12-11 23:06:38.975720"], ["updated_at", "2019-12-11 23:06:38.975720"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.015063"], ["last_sign_in_at", "2019-12-11 23:06:39.015063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.015662"], ["id", 1591]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1358], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1591], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1591], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DZ/5yZnlDVQcv/VGJBBox.dDsO2A9GUX1WyTpNbW9UVO1tU/d2h66"], ["created_at", "2019-12-11 23:06:39.032606"], ["updated_at", "2019-12-11 23:06:39.032606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.035744"], ["updated_at", "2019-12-11 23:06:39.035744"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1359], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1592], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1592], ["room_id", 1359], ["created_at", "2019-12-11 23:06:39.041604"], ["updated_at", "2019-12-11 23:06:39.041604"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1359], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1592], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1592], ["room_id", 1359], ["created_at", "2019-12-11 23:06:39.046759"], ["updated_at", "2019-12-11 23:06:39.046759"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.049836"], ["last_sign_in_at", "2019-12-11 23:06:39.049836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.050406"], ["id", 1592]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7PT5QutY5jR8nRMceAQfT.wsVMtcu2X59IdePJfeFJItpDcBGdbWm"], ["created_at", "2019-12-11 23:06:39.066611"], ["updated_at", "2019-12-11 23:06:39.066611"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.069493"], ["updated_at", "2019-12-11 23:06:39.069493"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1360], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1593], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1593], ["room_id", 1360], ["created_at", "2019-12-11 23:06:39.076815"], ["updated_at", "2019-12-11 23:06:39.076815"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1360], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1593], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1593], ["room_id", 1360], ["created_at", "2019-12-11 23:06:39.081689"], ["updated_at", "2019-12-11 23:06:39.081689"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.084557"], ["last_sign_in_at", "2019-12-11 23:06:39.084557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.085091"], ["id", 1593]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B0fgn7FFeDyhg5Wl25igxOuHxj8odKSbKokzGT/hGkdvrxiQAJ9RK"], ["created_at", "2019-12-11 23:06:39.101152"], ["updated_at", "2019-12-11 23:06:39.101152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.104136"], ["last_sign_in_at", "2019-12-11 23:06:39.104136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.104697"], ["id", 1594]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.9ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 67ms (Views: 50.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o9swPUPJcttoBFwYeB/Jau3JA1hOySc9ubJ5mvlMEGawUcYbNkuKW"], ["created_at", "2019-12-11 23:06:39.185322"], ["updated_at", "2019-12-11 23:06:39.185322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.187917"], ["last_sign_in_at", "2019-12-11 23:06:39.187917"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.188512"], ["id", 1595]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zxi4aYjticupbFISUHTaIOliZcsEMHpdSHronQ8Bn3pCFo5mBFyG."], ["created_at", "2019-12-11 23:06:39.200823"], ["updated_at", "2019-12-11 23:06:39.200823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.203840"], ["last_sign_in_at", "2019-12-11 23:06:39.203840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.204347"], ["id", 1596]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.7ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 22ms (Views: 4.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1f6oi9VTtkbBm.dJeZDRQeU3hb7peouGtfO2Fh5v4WjsPC2thWpNy"], ["created_at", "2019-12-11 23:06:39.235997"], ["updated_at", "2019-12-11 23:06:39.235997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.238762"], ["last_sign_in_at", "2019-12-11 23:06:39.238762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.239425"], ["id", 1597]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fudasu1dxcRowvGanp3EL.L0AbYi/5N/uzQzmSqdMUjxuxI7FPByC"], ["created_at", "2019-12-11 23:06:39.263503"], ["updated_at", "2019-12-11 23:06:39.263503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.265966"], ["updated_at", "2019-12-11 23:06:39.265966"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1361” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.268549"], ["last_sign_in_at", "2019-12-11 23:06:39.268549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.269069"], ["id", 1598]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1361"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1361], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 20ms (Views: 2.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o/xL5ytUXTtFSoDVJO/PXuy2YtzVtbvXovHX2M9p9Md/s4rdRI3B2"], ["created_at", "2019-12-11 23:06:39.298699"], ["updated_at", "2019-12-11 23:06:39.298699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.301275"], ["updated_at", "2019-12-11 23:06:39.301275"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1362” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.303779"], ["last_sign_in_at", "2019-12-11 23:06:39.303779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.304696"], ["id", 1599]] [1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1362"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1362], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.323294"], ["updated_at", "2019-12-11 23:06:39.323294"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1363” for 127.0.0.1 at 2019-12-11 20:06:39 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1363"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zHuV5XDLCndmr.n3d3bhWuaFeKusMPyxemDjEzW9apdF6mUnsgUn."], ["created_at", "2019-12-11 23:06:39.334429"], ["updated_at", "2019-12-11 23:06:39.334429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.336856"], ["updated_at", "2019-12-11 23:06:39.336856"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1364/edit” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.339102"], ["last_sign_in_at", "2019-12-11 23:06:39.339102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.339848"], ["id", 1600]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1364"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1364], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b67N7D292PYoNdVB12LHmeGdab5XRShh3NfKCyj2hqis3xrh94MOS"], ["created_at", "2019-12-11 23:06:39.368487"], ["updated_at", "2019-12-11 23:06:39.368487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.370751"], ["updated_at", "2019-12-11 23:06:39.370751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1365/edit” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.373056"], ["last_sign_in_at", "2019-12-11 23:06:39.373056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.373658"], ["id", 1601]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1365"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1365], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.384292"], ["updated_at", "2019-12-11 23:06:39.384292"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1366” for 127.0.0.1 at 2019-12-11 20:06:39 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1366"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YkOQcxnTXMD5qWzeuyS2Ke.pKOcESpK1fNSlx243wietPAy8AuAxK"], ["created_at", "2019-12-11 23:06:39.396071"], ["updated_at", "2019-12-11 23:06:39.396071"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.398752"], ["last_sign_in_at", "2019-12-11 23:06:39.398752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.399250"], ["id", 1602]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.402528"], ["updated_at", "2019-12-11 23:06:39.402528"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p3pItI.3anCFXWxD7Phk6eMbFlA5pqAXuYvJmPRZ.0/JFydTf.JvG"], ["created_at", "2019-12-11 23:06:39.411399"], ["updated_at", "2019-12-11 23:06:39.411399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.414004"], ["last_sign_in_at", "2019-12-11 23:06:39.414004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.414550"], ["id", 1603]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.417744"], ["updated_at", "2019-12-11 23:06:39.417744"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$enK5iUQinlHE42k/9zDPTeWIo1gHw8Lc4oCfq0PcZ8OjvN2fFfzm2"], ["created_at", "2019-12-11 23:06:39.426262"], ["updated_at", "2019-12-11 23:06:39.426262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.428829"], ["last_sign_in_at", "2019-12-11 23:06:39.428829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.429325"], ["id", 1604]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ySX10r8gmPRhRM3.ACaAUuzgsLKeol4Mj.8eJX01JHI8pGnWbp5Wm"], ["created_at", "2019-12-11 23:06:39.440461"], ["updated_at", "2019-12-11 23:06:39.440461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.443117"], ["last_sign_in_at", "2019-12-11 23:06:39.443117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.443636"], ["id", 1605]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y/mTru1wkZKfedvorkMbv.Frpzf.aNaNmCeKkuo.WOwTwUbH0xK62"], ["created_at", "2019-12-11 23:06:39.454922"], ["updated_at", "2019-12-11 23:06:39.454922"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.457891"], ["last_sign_in_at", "2019-12-11 23:06:39.457891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.458493"], ["id", 1606]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2EjR27tbzOU3iDpWNfND/Oxf/aw04zuG29tl3CjStnO0R9U08S5.S"], ["created_at", "2019-12-11 23:06:39.468687"], ["updated_at", "2019-12-11 23:06:39.468687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.470864"], ["updated_at", "2019-12-11 23:06:39.470864"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1369” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.474069"], ["last_sign_in_at", "2019-12-11 23:06:39.474069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.474608"], ["id", 1607]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1369"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1369], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:06:39.478688"], ["id", 1369]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1369 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7vGv/ffsMEwf8eRTcR3kiOgdqtyz2Ma52rLsNqjFUQLVgM0dX/jjW"], ["created_at", "2019-12-11 23:06:39.487112"], ["updated_at", "2019-12-11 23:06:39.487112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.489770"], ["updated_at", "2019-12-11 23:06:39.489770"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1370” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.492440"], ["last_sign_in_at", "2019-12-11 23:06:39.492440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.492986"], ["id", 1608]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1370"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1370], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:06:39.496855"], ["id", 1370]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1370 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zZdj8yWrRFPOnvAN6seKTOSL2NDdnskDR22aMZRLy4QxpB6H5kTbW"], ["created_at", "2019-12-11 23:06:39.505286"], ["updated_at", "2019-12-11 23:06:39.505286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.508003"], ["updated_at", "2019-12-11 23:06:39.508003"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1371” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.510593"], ["last_sign_in_at", "2019-12-11 23:06:39.510593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.511141"], ["id", 1609]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1371"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1371], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QZDlCJrkUaAeUxU/wug6p.kEKXjXkLdyI7VUHM10lg8xe3BvpA1eS"], ["created_at", "2019-12-11 23:06:39.525534"], ["updated_at", "2019-12-11 23:06:39.525534"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.529663"], ["updated_at", "2019-12-11 23:06:39.529663"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1372” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.532721"], ["last_sign_in_at", "2019-12-11 23:06:39.532721"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.533619"], ["id", 1610]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1372"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1372], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4Okgp3KjM2jNMz1MD0Mu0uR6IvNf9f0kZtBvcfHBPEY4FEuWSoU3K"], ["created_at", "2019-12-11 23:06:39.551393"], ["updated_at", "2019-12-11 23:06:39.551393"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.554734"], ["last_sign_in_at", "2019-12-11 23:06:39.554734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.555581"], ["id", 1611]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nsNMpQNzRD/NhW02GI9aSOMpRjCYxTNcjURuRAZ.Biibt8DT/C8cS"], ["created_at", "2019-12-11 23:06:39.567220"], ["updated_at", "2019-12-11 23:06:39.567220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.570343"], ["updated_at", "2019-12-11 23:06:39.570343"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1373” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.574646"], ["last_sign_in_at", "2019-12-11 23:06:39.574646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.575352"], ["id", 1612]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1373"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1373], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1373]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.3ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iUV.wN3.unXVcy1dlAk9x.cTxaFCUFq0OkXpEn4dpQzT87V3u258m"], ["created_at", "2019-12-11 23:06:39.590940"], ["updated_at", "2019-12-11 23:06:39.590940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.595383"], ["updated_at", "2019-12-11 23:06:39.595383"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1374” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.597731"], ["last_sign_in_at", "2019-12-11 23:06:39.597731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.598351"], ["id", 1613]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1374"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1374], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1374]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lvqv0X6QPFAeBi632u7ngO/AxeSiaVhBViLzcdvNbedEbNw3z5J0e"], ["created_at", "2019-12-11 23:06:39.611035"], ["updated_at", "2019-12-11 23:06:39.611035"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.613329"], ["updated_at", "2019-12-11 23:06:39.613329"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1375” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.615379"], ["last_sign_in_at", "2019-12-11 23:06:39.615379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.615889"], ["id", 1614]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1375"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7ttDiibJ1HxBMdJwF/nMZ.XksvzCBNfCqOCCDQHp.M/3aY8b4u37u"], ["created_at", "2019-12-11 23:06:39.625449"], ["updated_at", "2019-12-11 23:06:39.625449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.627704"], ["updated_at", "2019-12-11 23:06:39.627704"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1376” for 127.0.0.1 at 2019-12-11 20:06:39 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.629610"], ["last_sign_in_at", "2019-12-11 23:06:39.629610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.630120"], ["id", 1615]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1376"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2TaXkaiZ3Y5w6ZwspaGkQeOSNDk6vR4cMfSgi/EzRHpW.hvn1ivSS"], ["created_at", "2019-12-11 23:11:48.264242"], ["updated_at", "2019-12-11 23:11:48.264242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.273343"], ["updated_at", "2019-12-11 23:11:48.273343"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$eHImDotbKquFQ2yadtECweFlyj3K9tTBofnrFYEUD1jd0aB7kebiG"], ["created_at", "2019-12-11 23:11:48.282272"], ["updated_at", "2019-12-11 23:11:48.282272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.285114"], ["updated_at", "2019-12-11 23:11:48.285114"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1378], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1617], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1617], ["room_id", 1378], ["created_at", "2019-12-11 23:11:48.334544"], ["updated_at", "2019-12-11 23:11:48.334544"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xmsfv9UeptHunkOQnZizCO7Z3.2fIcBBpLKFgUsVnYlYLFDrtQQy2"], ["created_at", "2019-12-11 23:11:48.343161"], ["updated_at", "2019-12-11 23:11:48.343161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.345450"], ["updated_at", "2019-12-11 23:11:48.345450"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1379], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1618], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1618], ["room_id", 1379], ["created_at", "2019-12-11 23:11:48.349607"], ["updated_at", "2019-12-11 23:11:48.349607"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TCZhgFP/AtGBriFPjeYt.eC4gTXinv0pXtliEBuCyvojhKZ.6v.I6"], ["created_at", "2019-12-11 23:11:48.357457"], ["updated_at", "2019-12-11 23:11:48.357457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.359794"], ["updated_at", "2019-12-11 23:11:48.359794"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1380], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1619], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1619], ["room_id", 1380], ["created_at", "2019-12-11 23:11:48.364232"], ["updated_at", "2019-12-11 23:11:48.364232"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JJJ1/S7wlWPS5G3XucF2ju3cvtvnKY3.vnsg/9cwZWDOD7e1L3mQu"], ["created_at", "2019-12-11 23:11:48.372595"], ["updated_at", "2019-12-11 23:11:48.372595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.374831"], ["updated_at", "2019-12-11 23:11:48.374831"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1381"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1381], ["LIMIT", 1]]
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1381')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 149ms (Views: 115.7ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dZcgCIlE1JB0RjYqXD2liezxeQeTPgVj3ElGonyqe1COqNHtxQEG6"], ["created_at", "2019-12-11 23:11:48.534976"], ["updated_at", "2019-12-11 23:11:48.534976"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.537386"], ["updated_at", "2019-12-11 23:11:48.537386"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1382], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1621], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1621], ["room_id", 1382], ["created_at", "2019-12-11 23:11:48.542017"], ["updated_at", "2019-12-11 23:11:48.542017"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1382"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1382], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1382')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$P9kD/dAGWMFZs3iUG62YNujaEdjfRtcU9dIpMeLz6gh19iws3a9gm"], ["created_at", "2019-12-11 23:11:48.556178"], ["updated_at", "2019-12-11 23:11:48.556178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.558476"], ["updated_at", "2019-12-11 23:11:48.558476"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1383], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1622], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1622], ["room_id", 1383], ["created_at", "2019-12-11 23:11:48.562433"], ["updated_at", "2019-12-11 23:11:48.562433"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1383"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1383], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1383')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$9tB1b9Pyrn7eZT9mouaZc.wwAX9llEj7bPgqeALjb.AccCT1kzYRu"], ["created_at", "2019-12-11 23:11:48.574453"], ["updated_at", "2019-12-11 23:11:48.574453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.576758"], ["updated_at", "2019-12-11 23:11:48.576758"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1384], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1623], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1623], ["room_id", 1384], ["created_at", "2019-12-11 23:11:48.580836"], ["updated_at", "2019-12-11 23:11:48.580836"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1384"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1384], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1384')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$LSOLE4YpEMcFL0qA7/pPjO2FCdNZfzleIa386URXVwyDVvEbWv.LG"], ["created_at", "2019-12-11 23:11:48.591469"], ["updated_at", "2019-12-11 23:11:48.591469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.593799"], ["updated_at", "2019-12-11 23:11:48.593799"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1385], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1624], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1624], ["room_id", 1385], ["created_at", "2019-12-11 23:11:48.597700"], ["updated_at", "2019-12-11 23:11:48.597700"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1385"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1385], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1385')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 109ms (Views: 76.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qCD.IIHWLnTPegwf4YjdFuOb2TRguo4DBa81kS8ILaQxmOBBE0ZIq"], ["created_at", "2019-12-11 23:11:49.183599"], ["updated_at", "2019-12-11 23:11:49.183599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.185642"], ["updated_at", "2019-12-11 23:11:49.185642"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.201930"], ["last_sign_in_at", "2019-12-11 23:11:49.201930"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.202560"], ["id", 1625]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1386"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1386], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1625], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1625], ["room_id", 1386], ["created_at", "2019-12-11 23:11:49.219606"], ["updated_at", "2019-12-11 23:11:49.219606"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1386], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$BCkoSUhGf3TVdQJZ6Ssb3emVKtif1XoomyaLDmxVMe87gBLYX2obe"], ["created_at", "2019-12-11 23:11:49.232798"], ["updated_at", "2019-12-11 23:11:49.232798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.235627"], ["updated_at", "2019-12-11 23:11:49.235627"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.237949"], ["last_sign_in_at", "2019-12-11 23:11:49.237949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.238505"], ["id", 1626]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1387"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1387], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1626], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1626], ["room_id", 1387], ["created_at", "2019-12-11 23:11:49.243451"], ["updated_at", "2019-12-11 23:11:49.243451"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$zTfPtDnEH0ULOMHSISRFQ.b2eGBLMiXPjSLY.Etx8gOVdDtmttdhO"], ["created_at", "2019-12-11 23:11:49.252326"], ["updated_at", "2019-12-11 23:11:49.252326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.254378"], ["updated_at", "2019-12-11 23:11:49.254378"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.256644"], ["last_sign_in_at", "2019-12-11 23:11:49.256644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.257178"], ["id", 1627]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1388"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1388], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$mGyOk81kT2oGot8sxsUzoudOIw9EoJiC7TlDPoc5oOBfqLHxpkM7."], ["created_at", "2019-12-11 23:11:49.265621"], ["updated_at", "2019-12-11 23:11:49.265621"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.268352"], ["updated_at", "2019-12-11 23:11:49.268352"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.270863"], ["last_sign_in_at", "2019-12-11 23:11:49.270863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.271405"], ["id", 1628]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1389"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VpRNp6am66MORuA4zUrxFuN6q5VAuPbOGdZNlbeJfGvYRMIHHQ2mW"], ["created_at", "2019-12-11 23:11:49.281205"], ["updated_at", "2019-12-11 23:11:49.281205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.284005"], ["updated_at", "2019-12-11 23:11:49.284005"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1390], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1629], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1629], ["room_id", 1390], ["created_at", "2019-12-11 23:11:49.288661"], ["updated_at", "2019-12-11 23:11:49.288661"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1390” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.291106"], ["last_sign_in_at", "2019-12-11 23:11:49.291106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.291623"], ["id", 1629]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1390"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1390], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1390')[0m
Rendered appointments/show.html.erb within layouts/application (24.6ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 386ms (Views: 368.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qfh47QGKkes80QYewCPXG.q3VbzLCNf.zW4wNWK/FzeqTqjGt/I3G"], ["created_at", "2019-12-11 23:11:49.687720"], ["updated_at", "2019-12-11 23:11:49.687720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.689963"], ["updated_at", "2019-12-11 23:11:49.689963"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1391], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1630], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1630], ["room_id", 1391], ["created_at", "2019-12-11 23:11:49.693897"], ["updated_at", "2019-12-11 23:11:49.693897"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1391], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1630], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1630], ["room_id", 1391], ["created_at", "2019-12-11 23:11:49.698339"], ["updated_at", "2019-12-11 23:11:49.698339"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.701348"], ["last_sign_in_at", "2019-12-11 23:11:49.701348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.701910"], ["id", 1630]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1630]] Rendered appointments/my_appointments.html.erb within layouts/application (21.9ms)
Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0G9GtnOGgoLi.PQmaWxPtOwxfXKExiPcbr2SYDEQjWTwfgOnf6iKO"], ["created_at", "2019-12-11 23:11:49.786125"], ["updated_at", "2019-12-11 23:11:49.786125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.788475"], ["updated_at", "2019-12-11 23:11:49.788475"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1392], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1631], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1631], ["room_id", 1392], ["created_at", "2019-12-11 23:11:49.792575"], ["updated_at", "2019-12-11 23:11:49.792575"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1392], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1631], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1631], ["room_id", 1392], ["created_at", "2019-12-11 23:11:49.796811"], ["updated_at", "2019-12-11 23:11:49.796811"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.799402"], ["last_sign_in_at", "2019-12-11 23:11:49.799402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.800057"], ["id", 1631]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1631]] Rendered appointments/my_appointments.html.erb within layouts/application (18.1ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rd1BuReTNzG/yemgqqOtFuMbHhTKOpu8u71MjmyfpjfswJvGVMmUa"], ["created_at", "2019-12-11 23:11:49.828522"], ["updated_at", "2019-12-11 23:11:49.828522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.830912"], ["updated_at", "2019-12-11 23:11:49.830912"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1393], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1632], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1632], ["room_id", 1393], ["created_at", "2019-12-11 23:11:49.835776"], ["updated_at", "2019-12-11 23:11:49.835776"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/752” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.838369"], ["last_sign_in_at", "2019-12-11 23:11:49.838369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.838889"], ["id", 1632]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"752"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 752], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 752]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VtNxqCDUBgeteUjSkCNKwe.IIZsv4NjCEIU.H2Eexw0qNS4WbeCF2"], ["created_at", "2019-12-11 23:11:49.853346"], ["updated_at", "2019-12-11 23:11:49.853346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.855794"], ["last_sign_in_at", "2019-12-11 23:11:49.855794"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.856381"], ["id", 1633]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 37ms (Views: 19.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HfHZNL8F31UdaCmwR1vCq.UraD83jCzA0/BKFLOPdW4R07ASd4uFi"], ["created_at", "2019-12-11 23:11:49.903474"], ["updated_at", "2019-12-11 23:11:49.903474"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.905813"], ["updated_at", "2019-12-11 23:11:49.905813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1394], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1634], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1634], ["room_id", 1394], ["created_at", "2019-12-11 23:11:49.909953"], ["updated_at", "2019-12-11 23:11:49.909953"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1394], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1634], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1634], ["room_id", 1394], ["created_at", "2019-12-11 23:11:49.915020"], ["updated_at", "2019-12-11 23:11:49.915020"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.918655"], ["last_sign_in_at", "2019-12-11 23:11:49.918655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.919768"], ["id", 1634]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1394], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1634], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1634], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.4ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xvV50uD0eIjbuQYrzFY5.OkYUhDyLBTlckKvBJRqvqSsiqnFcGht6"], ["created_at", "2019-12-11 23:11:49.939024"], ["updated_at", "2019-12-11 23:11:49.939024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.941922"], ["updated_at", "2019-12-11 23:11:49.941922"]]
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1395], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1635], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1635], ["room_id", 1395], ["created_at", "2019-12-11 23:11:49.946912"], ["updated_at", "2019-12-11 23:11:49.946912"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1395], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1635], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1635], ["room_id", 1395], ["created_at", "2019-12-11 23:11:49.952679"], ["updated_at", "2019-12-11 23:11:49.952679"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.957424"], ["last_sign_in_at", "2019-12-11 23:11:49.957424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.958146"], ["id", 1635]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1395], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1635], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1635], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KDpF3566W5tvWsS21SkOBeGSIIyvcRNl4EygSz8kyCl04CKqYjrI2"], ["created_at", "2019-12-11 23:11:49.975663"], ["updated_at", "2019-12-11 23:11:49.975663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.978304"], ["updated_at", "2019-12-11 23:11:49.978304"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1396], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1636], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1636], ["room_id", 1396], ["created_at", "2019-12-11 23:11:49.983598"], ["updated_at", "2019-12-11 23:11:49.983598"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1396], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1636], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1636], ["room_id", 1396], ["created_at", "2019-12-11 23:11:49.988714"], ["updated_at", "2019-12-11 23:11:49.988714"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.991357"], ["last_sign_in_at", "2019-12-11 23:11:49.991357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.992150"], ["id", 1636]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R0s6L773EGTLI6oNEqN0k.1qRqOzU85fh00ZKmW5s8BhRVjPWucNK"], ["created_at", "2019-12-11 23:11:50.006571"], ["updated_at", "2019-12-11 23:11:50.006571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.009520"], ["updated_at", "2019-12-11 23:11:50.009520"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1397], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1637], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1637], ["room_id", 1397], ["created_at", "2019-12-11 23:11:50.015265"], ["updated_at", "2019-12-11 23:11:50.015265"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1397], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1637], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1637], ["room_id", 1397], ["created_at", "2019-12-11 23:11:50.020598"], ["updated_at", "2019-12-11 23:11:50.020598"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.023568"], ["last_sign_in_at", "2019-12-11 23:11:50.023568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.024074"], ["id", 1637]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j8Hu50h97JQKuZeZfhaaMeFR8gxd1Gz9sDoSyX.dvqG5OOVlSCOwG"], ["created_at", "2019-12-11 23:11:50.042160"], ["updated_at", "2019-12-11 23:11:50.042160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.045310"], ["last_sign_in_at", "2019-12-11 23:11:50.045310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.046164"], ["id", 1638]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (10.3ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 68ms (Views: 50.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eCXmEUW7W/gzPg9V1kXv.OfB.4DhY1sahZqziuLqNK5vfLQPMZmbO"], ["created_at", "2019-12-11 23:11:50.128140"], ["updated_at", "2019-12-11 23:11:50.128140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.131146"], ["last_sign_in_at", "2019-12-11 23:11:50.131146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.132562"], ["id", 1639]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RPKXSwYAlLVNRDTs4srd4e5IiVQ2spPfnSuGeFio2wQe1V1n3oY26"], ["created_at", "2019-12-11 23:11:50.147302"], ["updated_at", "2019-12-11 23:11:50.147302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.151052"], ["last_sign_in_at", "2019-12-11 23:11:50.151052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.151702"], ["id", 1640]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (9.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 28ms (Views: 10.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y2EtnA2G0vE8x.E6BE5Oc.wgviL1fdggDsA.SZw8eeo4ieG.5zFD."], ["created_at", "2019-12-11 23:11:50.188667"], ["updated_at", "2019-12-11 23:11:50.188667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.190811"], ["last_sign_in_at", "2019-12-11 23:11:50.190811"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.191307"], ["id", 1641]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e9Asog//O.Cmmwb5hlUx1.NlGqIx/nmeeaGM4n5rUYbXK7e4aGn8e"], ["created_at", "2019-12-11 23:11:50.210074"], ["updated_at", "2019-12-11 23:11:50.210074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.212440"], ["updated_at", "2019-12-11 23:11:50.212440"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1398” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.214605"], ["last_sign_in_at", "2019-12-11 23:11:50.214605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.215106"], ["id", 1642]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1398"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1398], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f26cs49K36484epJSYfwGuQADQ2EUuX21QGMT.yuOg.yNo6dKxf76"], ["created_at", "2019-12-11 23:11:50.242374"], ["updated_at", "2019-12-11 23:11:50.242374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.244589"], ["updated_at", "2019-12-11 23:11:50.244589"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1399” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.246642"], ["last_sign_in_at", "2019-12-11 23:11:50.246642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.247137"], ["id", 1643]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1399"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1399], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.257092"], ["updated_at", "2019-12-11 23:11:50.257092"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1400” for 127.0.0.1 at 2019-12-11 20:11:50 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1400"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I6Zx6pGJta9OPl9J0sPBbu9v6L/TvmFto2xIvszOgwDcNFhMSez.a"], ["created_at", "2019-12-11 23:11:50.267717"], ["updated_at", "2019-12-11 23:11:50.267717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.270013"], ["updated_at", "2019-12-11 23:11:50.270013"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1401/edit” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.272067"], ["last_sign_in_at", "2019-12-11 23:11:50.272067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.272653"], ["id", 1644]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1401"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1401], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5/5rISIUut3Ls3hPsqNFUuZaNWlY50PEHZukmYUZav.mxb3vyaIPu"], ["created_at", "2019-12-11 23:11:50.301677"], ["updated_at", "2019-12-11 23:11:50.301677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.303865"], ["updated_at", "2019-12-11 23:11:50.303865"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1402/edit” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.305975"], ["last_sign_in_at", "2019-12-11 23:11:50.305975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.306568"], ["id", 1645]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1402"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1402], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.317497"], ["updated_at", "2019-12-11 23:11:50.317497"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1403” for 127.0.0.1 at 2019-12-11 20:11:50 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1403"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NNXFfFg0TaAj3OnYDTouGOPnX9wQziHDrospB22dgs51zqn3GuIFO"], ["created_at", "2019-12-11 23:11:50.328649"], ["updated_at", "2019-12-11 23:11:50.328649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.331396"], ["last_sign_in_at", "2019-12-11 23:11:50.331396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.331922"], ["id", 1646]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.335935"], ["updated_at", "2019-12-11 23:11:50.335935"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3PP.QNPDW6Q9/NoyUbPAQu8eSiUjfEZcoPpTUtkVTdglaOwXbxuc2"], ["created_at", "2019-12-11 23:11:50.344569"], ["updated_at", "2019-12-11 23:11:50.344569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.347105"], ["last_sign_in_at", "2019-12-11 23:11:50.347105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.347614"], ["id", 1647]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.351555"], ["updated_at", "2019-12-11 23:11:50.351555"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9YHK3jsHVfcvXW/dM5qk3Oz/sWCu2R2HkPZiZYgnRca/Vu2JKfgP."], ["created_at", "2019-12-11 23:11:50.359885"], ["updated_at", "2019-12-11 23:11:50.359885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.362559"], ["last_sign_in_at", "2019-12-11 23:11:50.362559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.363061"], ["id", 1648]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zJJg90gsoNdV4TefpekIPOjzf2GPulmsUYlchZefkkn0nDWRgwnJ6"], ["created_at", "2019-12-11 23:11:50.374236"], ["updated_at", "2019-12-11 23:11:50.374236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.376747"], ["last_sign_in_at", "2019-12-11 23:11:50.376747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.377256"], ["id", 1649]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0nairtzHDYBRulq1zulzz.fQt3I0u2Tn8sTznC6gtPMzml8CZbPgG"], ["created_at", "2019-12-11 23:11:50.388820"], ["updated_at", "2019-12-11 23:11:50.388820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.391407"], ["last_sign_in_at", "2019-12-11 23:11:50.391407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.391928"], ["id", 1650]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BQjSDPeOWEuy1SwN4CwaPetCy9lLArLZkh2zoL.zZqrz0GMctWhEi"], ["created_at", "2019-12-11 23:11:50.402686"], ["updated_at", "2019-12-11 23:11:50.402686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.404882"], ["updated_at", "2019-12-11 23:11:50.404882"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1406” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.407331"], ["last_sign_in_at", "2019-12-11 23:11:50.407331"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.407844"], ["id", 1651]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1406"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1406], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:11:50.411670"], ["id", 1406]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1406 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Bz/OZf1TGfqusonY9KnWr.dhh/ZzYd111O2jjcbTd4re9SkECTIbG"], ["created_at", "2019-12-11 23:11:50.420424"], ["updated_at", "2019-12-11 23:11:50.420424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.422714"], ["updated_at", "2019-12-11 23:11:50.422714"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1407” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.425159"], ["last_sign_in_at", "2019-12-11 23:11:50.425159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.425735"], ["id", 1652]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1407"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1407], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:11:50.429780"], ["id", 1407]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1407 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3EcdC8D/iocEPiO8mXsMTunbtikMJ67SH055DmCYvPsNb2gIntW4C"], ["created_at", "2019-12-11 23:11:50.438557"], ["updated_at", "2019-12-11 23:11:50.438557"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.440743"], ["updated_at", "2019-12-11 23:11:50.440743"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1408” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.443150"], ["last_sign_in_at", "2019-12-11 23:11:50.443150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.443680"], ["id", 1653]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1408"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1408], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uAoSo2d53W1asj2nO95IyOM.o45Q7eP7d1Ff4oU/Jp4JW4zK3RDcW"], ["created_at", "2019-12-11 23:11:50.459529"], ["updated_at", "2019-12-11 23:11:50.459529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.461737"], ["updated_at", "2019-12-11 23:11:50.461737"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1409” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.464012"], ["last_sign_in_at", "2019-12-11 23:11:50.464012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.464573"], ["id", 1654]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1409"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1409], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T0tXjX6H6gcbmFdQGCDReOVL6125Ejj.nGMU0x5BXiNWtnH2ByPQu"], ["created_at", "2019-12-11 23:11:50.480229"], ["updated_at", "2019-12-11 23:11:50.480229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.484511"], ["last_sign_in_at", "2019-12-11 23:11:50.484511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.485146"], ["id", 1655]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tTmoFDdsVV54hK5xgV2WAe.r5j7GH58C8.5F.iTRsAogvfFN6UtVu"], ["created_at", "2019-12-11 23:11:50.498472"], ["updated_at", "2019-12-11 23:11:50.498472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.501194"], ["updated_at", "2019-12-11 23:11:50.501194"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1410” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.503337"], ["last_sign_in_at", "2019-12-11 23:11:50.503337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.503867"], ["id", 1656]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1410"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1410], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1410]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PgWdsETjpNlsaODoAF9pSObWFVEArGixn3lExbbnOzWtsPNlkKnfa"], ["created_at", "2019-12-11 23:11:50.515163"], ["updated_at", "2019-12-11 23:11:50.515163"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.517859"], ["updated_at", "2019-12-11 23:11:50.517859"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1411” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.519973"], ["last_sign_in_at", "2019-12-11 23:11:50.519973"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.520544"], ["id", 1657]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1411"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1411], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1411]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g2TjNPJgR7PuDc.SNio.BOgehTdkErJmmHtxoVku3DK5RVotbow4K"], ["created_at", "2019-12-11 23:11:50.531994"], ["updated_at", "2019-12-11 23:11:50.531994"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.534817"], ["updated_at", "2019-12-11 23:11:50.534817"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1412” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.536822"], ["last_sign_in_at", "2019-12-11 23:11:50.536822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.537304"], ["id", 1658]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1412"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4kKybHsN0cJKLna9G5Ou/ucgv7G7hY/lyJucvNqk5/aWVHMCQACsK"], ["created_at", "2019-12-11 23:11:50.545939"], ["updated_at", "2019-12-11 23:11:50.545939"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.547991"], ["updated_at", "2019-12-11 23:11:50.547991"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1413” for 127.0.0.1 at 2019-12-11 20:11:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.550243"], ["last_sign_in_at", "2019-12-11 23:11:50.550243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.550977"], ["id", 1659]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1413"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JBuvfYyP0KL4PiD/7Xqjv.imtgKG8wkGwbyceyv.CW34uS4f01u3."], ["created_at", "2019-12-11 23:17:24.611319"], ["updated_at", "2019-12-11 23:17:24.611319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.620158"], ["updated_at", "2019-12-11 23:17:24.620158"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$K/R7oowpuikvunao4AEAVutYVkPqpAPIkAg7l6FaC4heUYR9QAkgm"], ["created_at", "2019-12-11 23:17:24.628773"], ["updated_at", "2019-12-11 23:17:24.628773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.631042"], ["updated_at", "2019-12-11 23:17:24.631042"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1415], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1661], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1661], ["room_id", 1415], ["created_at", "2019-12-11 23:17:24.679145"], ["updated_at", "2019-12-11 23:17:24.679145"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$RKgGmoLoNy8laB0FDPn5H.tEARsgrP0qyDZc2FpGgMy6jNfBVSSgm"], ["created_at", "2019-12-11 23:17:24.687300"], ["updated_at", "2019-12-11 23:17:24.687300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.689477"], ["updated_at", "2019-12-11 23:17:24.689477"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1416], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1662], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1662], ["room_id", 1416], ["created_at", "2019-12-11 23:17:24.693599"], ["updated_at", "2019-12-11 23:17:24.693599"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hi0RsUM/0GZQyyJ5AR92t.BkUAipdQ69MPMT8ZForKbW3eq8IF9za"], ["created_at", "2019-12-11 23:17:24.700929"], ["updated_at", "2019-12-11 23:17:24.700929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.703107"], ["updated_at", "2019-12-11 23:17:24.703107"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1417], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1663], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1663], ["room_id", 1417], ["created_at", "2019-12-11 23:17:24.707238"], ["updated_at", "2019-12-11 23:17:24.707238"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NC8kR9JksMhmZ8DpILiEt.9oEshf2HTAqe23bWNhEOdeyzsnsXu9u"], ["created_at", "2019-12-11 23:17:24.716933"], ["updated_at", "2019-12-11 23:17:24.716933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.719066"], ["updated_at", "2019-12-11 23:17:24.719066"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1418"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1418], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1418')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 149ms (Views: 115.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$8VModfFidB4AbDFypEDjEOaPeBSiz6OQ0B4i36zaj.acixKpxDO.W"], ["created_at", "2019-12-11 23:17:24.878023"], ["updated_at", "2019-12-11 23:17:24.878023"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.880406"], ["updated_at", "2019-12-11 23:17:24.880406"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1419], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1665], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1665], ["room_id", 1419], ["created_at", "2019-12-11 23:17:24.884752"], ["updated_at", "2019-12-11 23:17:24.884752"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1419"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1419], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1419')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xKqOzOdvynnK/hLLGgPJuOy2WAgeXEhw1QxMJ1MUogCDVFDeVm3Ki"], ["created_at", "2019-12-11 23:17:24.898697"], ["updated_at", "2019-12-11 23:17:24.898697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.900970"], ["updated_at", "2019-12-11 23:17:24.900970"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1420], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1666], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1666], ["room_id", 1420], ["created_at", "2019-12-11 23:17:24.904928"], ["updated_at", "2019-12-11 23:17:24.904928"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1420"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1420], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1420')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$82WuL1Kk2PvbHhsIWqzFNeyEpazaDBbxC84aQ2AdCW7HVvfa9UzJ."], ["created_at", "2019-12-11 23:17:24.916878"], ["updated_at", "2019-12-11 23:17:24.916878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.919199"], ["updated_at", "2019-12-11 23:17:24.919199"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1421], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1667], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1667], ["room_id", 1421], ["created_at", "2019-12-11 23:17:24.923204"], ["updated_at", "2019-12-11 23:17:24.923204"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1421"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1421], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1421')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$byThGoMtsR59cKQcBpPfmOKh0l5118eUdSErg5ftRBNUhXyqaBhF."], ["created_at", "2019-12-11 23:17:24.934065"], ["updated_at", "2019-12-11 23:17:24.934065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.936451"], ["updated_at", "2019-12-11 23:17:24.936451"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1422], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1668], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1668], ["room_id", 1422], ["created_at", "2019-12-11 23:17:24.940489"], ["updated_at", "2019-12-11 23:17:24.940489"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1422"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1422], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1422')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 109ms (Views: 76.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$DcxqG2vqF9zoYR5GyBhbN.odt9bgMFdf3dbF2UrMfTYEWS813vfTu"], ["created_at", "2019-12-11 23:17:25.523576"], ["updated_at", "2019-12-11 23:17:25.523576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.525825"], ["updated_at", "2019-12-11 23:17:25.525825"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.542713"], ["last_sign_in_at", "2019-12-11 23:17:25.542713"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.543545"], ["id", 1669]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1423"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1423], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1669], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1669], ["room_id", 1423], ["created_at", "2019-12-11 23:17:25.561027"], ["updated_at", "2019-12-11 23:17:25.561027"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1423], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rue4mdIRFjyIxTzVhnQIc.z5zCHd85Tmyz1zBBTfxA4GUgARA8Oi2"], ["created_at", "2019-12-11 23:17:25.574620"], ["updated_at", "2019-12-11 23:17:25.574620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.577165"], ["updated_at", "2019-12-11 23:17:25.577165"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.579831"], ["last_sign_in_at", "2019-12-11 23:17:25.579831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.580487"], ["id", 1670]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1424"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1424], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1670], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1670], ["room_id", 1424], ["created_at", "2019-12-11 23:17:25.586005"], ["updated_at", "2019-12-11 23:17:25.586005"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$GOHQIxpaCcch1DkcJ41kfeNvBaMn0la7WouGnecgrz1brra09NZ0C"], ["created_at", "2019-12-11 23:17:25.595203"], ["updated_at", "2019-12-11 23:17:25.595203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.597643"], ["updated_at", "2019-12-11 23:17:25.597643"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.600047"], ["last_sign_in_at", "2019-12-11 23:17:25.600047"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.600551"], ["id", 1671]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1425"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1425], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YX9rAHsrXOiEjznY9ixIQ.fsBbCFuy8YCMIu6OjNhnlHvO/Xz4d.2"], ["created_at", "2019-12-11 23:17:25.609295"], ["updated_at", "2019-12-11 23:17:25.609295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.611981"], ["updated_at", "2019-12-11 23:17:25.611981"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.614550"], ["last_sign_in_at", "2019-12-11 23:17:25.614550"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.615076"], ["id", 1672]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1426"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$lSIVO8wIHObxSlq0ruKdSOQcjxjBgCSo9sZZ7EjBrcG7aQZSe5RoO"], ["created_at", "2019-12-11 23:17:25.625091"], ["updated_at", "2019-12-11 23:17:25.625091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.627986"], ["updated_at", "2019-12-11 23:17:25.627986"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1427], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1673], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1673], ["room_id", 1427], ["created_at", "2019-12-11 23:17:25.632447"], ["updated_at", "2019-12-11 23:17:25.632447"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1427” for 127.0.0.1 at 2019-12-11 20:17:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.634817"], ["last_sign_in_at", "2019-12-11 23:17:25.634817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.635300"], ["id", 1673]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1427"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1427], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1427')[0m
Rendered appointments/show.html.erb within layouts/application (21.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 365ms (Views: 347.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$e3P/yLYh1ZOwrWqZA8G.uewn5V/ckAWAy1jOQAmOZLe7Y28oD3/MC"], ["created_at", "2019-12-11 23:17:26.010399"], ["updated_at", "2019-12-11 23:17:26.010399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.013244"], ["updated_at", "2019-12-11 23:17:26.013244"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1428], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1674], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1674], ["room_id", 1428], ["created_at", "2019-12-11 23:17:26.017455"], ["updated_at", "2019-12-11 23:17:26.017455"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1428], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1674], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1674], ["room_id", 1428], ["created_at", "2019-12-11 23:17:26.021535"], ["updated_at", "2019-12-11 23:17:26.021535"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.023846"], ["last_sign_in_at", "2019-12-11 23:17:26.023846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.024452"], ["id", 1674]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1674]] Rendered appointments/my_appointments.html.erb within layouts/application (21.3ms)
Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$gXMFZ3Ar1QbDs5HG0SgfLOo4pgsatjFarIS5Q8Z//ek3D9LmtOokm"], ["created_at", "2019-12-11 23:17:26.086418"], ["updated_at", "2019-12-11 23:17:26.086418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.088640"], ["updated_at", "2019-12-11 23:17:26.088640"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1429], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1675], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1675], ["room_id", 1429], ["created_at", "2019-12-11 23:17:26.092656"], ["updated_at", "2019-12-11 23:17:26.092656"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1429], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1675], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1675], ["room_id", 1429], ["created_at", "2019-12-11 23:17:26.097093"], ["updated_at", "2019-12-11 23:17:26.097093"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.099565"], ["last_sign_in_at", "2019-12-11 23:17:26.099565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.100091"], ["id", 1675]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1675]] Rendered appointments/my_appointments.html.erb within layouts/application (17.5ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/bE13HE8L63j0hvodzd4POwBUSVNa9lMIntMry5LYu91PAAQAoJ8q"], ["created_at", "2019-12-11 23:17:26.128492"], ["updated_at", "2019-12-11 23:17:26.128492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.130908"], ["updated_at", "2019-12-11 23:17:26.130908"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1430], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1676], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1676], ["room_id", 1430], ["created_at", "2019-12-11 23:17:26.135506"], ["updated_at", "2019-12-11 23:17:26.135506"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/775” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.137959"], ["last_sign_in_at", "2019-12-11 23:17:26.137959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.138548"], ["id", 1676]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"775"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 775], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 775]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cOTfOdLtEf.gKfcmQflOhetqmYDplhWNdG7ma.RjhJA.RUrqcIDmO"], ["created_at", "2019-12-11 23:17:26.153144"], ["updated_at", "2019-12-11 23:17:26.153144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.155649"], ["last_sign_in_at", "2019-12-11 23:17:26.155649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.156155"], ["id", 1677]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.9ms) Rendered layouts/_header-admin.html.erb (1.4ms)
Completed 200 OK in 38ms (Views: 20.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WJO7Gd4dcmqHe1B7DoRuf.ebDSsMsnyPUSpnk72eAmiKraXHCw4YS"], ["created_at", "2019-12-11 23:17:26.204187"], ["updated_at", "2019-12-11 23:17:26.204187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.206565"], ["updated_at", "2019-12-11 23:17:26.206565"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1431], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1678], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1678], ["room_id", 1431], ["created_at", "2019-12-11 23:17:26.210865"], ["updated_at", "2019-12-11 23:17:26.210865"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1431], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1678], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1678], ["room_id", 1431], ["created_at", "2019-12-11 23:17:26.216877"], ["updated_at", "2019-12-11 23:17:26.216877"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.220178"], ["last_sign_in_at", "2019-12-11 23:17:26.220178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.220738"], ["id", 1678]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1431], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1678], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1678], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (4.1ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pTqXhtW9H4MYTGg3kNz.2eD.FjquX7yUy8sF9fE1yID5LFGSUxsQq"], ["created_at", "2019-12-11 23:17:26.240009"], ["updated_at", "2019-12-11 23:17:26.240009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.243000"], ["updated_at", "2019-12-11 23:17:26.243000"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1432], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1679], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1679], ["room_id", 1432], ["created_at", "2019-12-11 23:17:26.248684"], ["updated_at", "2019-12-11 23:17:26.248684"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1432], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1679], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1679], ["room_id", 1432], ["created_at", "2019-12-11 23:17:26.256063"], ["updated_at", "2019-12-11 23:17:26.256063"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.258853"], ["last_sign_in_at", "2019-12-11 23:17:26.258853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.259368"], ["id", 1679]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1432], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1679], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1679], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5FV5FnGp1ubReVxmJ/vKBut4.0s1pqVuaiVHSww9ldLpp91GC8wEG"], ["created_at", "2019-12-11 23:17:26.277837"], ["updated_at", "2019-12-11 23:17:26.277837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.280643"], ["updated_at", "2019-12-11 23:17:26.280643"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1433], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1680], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1680], ["room_id", 1433], ["created_at", "2019-12-11 23:17:26.285382"], ["updated_at", "2019-12-11 23:17:26.285382"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1433], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1680], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1680], ["room_id", 1433], ["created_at", "2019-12-11 23:17:26.291398"], ["updated_at", "2019-12-11 23:17:26.291398"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.294791"], ["last_sign_in_at", "2019-12-11 23:17:26.294791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.295420"], ["id", 1680]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4d5TewyiHtWWsMfxNiJy/.VcrHRIAus0VQrdVApyWvrDgaMCp91ga"], ["created_at", "2019-12-11 23:17:26.309218"], ["updated_at", "2019-12-11 23:17:26.309218"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.312277"], ["updated_at", "2019-12-11 23:17:26.312277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1434], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1681], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1681], ["room_id", 1434], ["created_at", "2019-12-11 23:17:26.317342"], ["updated_at", "2019-12-11 23:17:26.317342"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1434], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1681], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1681], ["room_id", 1434], ["created_at", "2019-12-11 23:17:26.323083"], ["updated_at", "2019-12-11 23:17:26.323083"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.326099"], ["last_sign_in_at", "2019-12-11 23:17:26.326099"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.326870"], ["id", 1681]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SwLuMq.XKP0gFOa8y3mRn.KzBjpWX/XHJy4kaJleKbITRkqWCEwia"], ["created_at", "2019-12-11 23:17:26.345111"], ["updated_at", "2019-12-11 23:17:26.345111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.348476"], ["last_sign_in_at", "2019-12-11 23:17:26.348476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.349300"], ["id", 1682]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.7ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 68ms (Views: 50.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IfaWn.vsPA2kvOr.YZDQYum8ZGtcxyjCEi4xQ/nw8ss1xyk2GW6ni"], ["created_at", "2019-12-11 23:17:26.430452"], ["updated_at", "2019-12-11 23:17:26.430452"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.433028"], ["last_sign_in_at", "2019-12-11 23:17:26.433028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.433510"], ["id", 1683]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xcp05WsmrghKinC6DlRLqu85S67jpVB/3XS4fEMRH9fo99p1/sTpu"], ["created_at", "2019-12-11 23:17:26.446585"], ["updated_at", "2019-12-11 23:17:26.446585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.449208"], ["last_sign_in_at", "2019-12-11 23:17:26.449208"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.449703"], ["id", 1684]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (8.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 27ms (Views: 9.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0C8pRKAGa0q6kov.ahsXOuDj7dXYA8119wrzrevWx/9NLGRtjrjIq"], ["created_at", "2019-12-11 23:17:26.485749"], ["updated_at", "2019-12-11 23:17:26.485749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.488104"], ["last_sign_in_at", "2019-12-11 23:17:26.488104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.488618"], ["id", 1685]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wv3YEzWhDTtmCCf4V1w4LeV6oTtA8DNYpOaw1FpudWI.MGxc/CISG"], ["created_at", "2019-12-11 23:17:26.508346"], ["updated_at", "2019-12-11 23:17:26.508346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.511671"], ["updated_at", "2019-12-11 23:17:26.511671"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1435” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.514007"], ["last_sign_in_at", "2019-12-11 23:17:26.514007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.514597"], ["id", 1686]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1435"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1435], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZAzP87aBJYl8CKgZiFpz1e1TT6MMng32uG1JSXJmp2zx8MUhoqDSK"], ["created_at", "2019-12-11 23:17:26.541944"], ["updated_at", "2019-12-11 23:17:26.541944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.544479"], ["updated_at", "2019-12-11 23:17:26.544479"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1436” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.546758"], ["last_sign_in_at", "2019-12-11 23:17:26.546758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.547289"], ["id", 1687]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1436"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1436], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.558444"], ["updated_at", "2019-12-11 23:17:26.558444"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1437” for 127.0.0.1 at 2019-12-11 20:17:26 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1437"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8dcWTjTK0D3M/EGpZ1u7WegJ1LURN8L04cn4DmQSxJMheUAobLoba"], ["created_at", "2019-12-11 23:17:26.569370"], ["updated_at", "2019-12-11 23:17:26.569370"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.571643"], ["updated_at", "2019-12-11 23:17:26.571643"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1438/edit” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.573814"], ["last_sign_in_at", "2019-12-11 23:17:26.573814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.574451"], ["id", 1688]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1438"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1438], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4ArrOGGWyqen.HfNcVQxH.bHarH85Xv0OZg36QoLiwssqewFNFEG."], ["created_at", "2019-12-11 23:17:26.604294"], ["updated_at", "2019-12-11 23:17:26.604294"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.606674"], ["updated_at", "2019-12-11 23:17:26.606674"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1439/edit” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.608923"], ["last_sign_in_at", "2019-12-11 23:17:26.608923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.609463"], ["id", 1689]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1439"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1439], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.620654"], ["updated_at", "2019-12-11 23:17:26.620654"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1440” for 127.0.0.1 at 2019-12-11 20:17:26 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1440"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1lWnldUeAWLP3GD53.6xwuJ3V3jWRXtfBJyqdIJcfVEA5qScXsPq6"], ["created_at", "2019-12-11 23:17:26.632685"], ["updated_at", "2019-12-11 23:17:26.632685"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.635315"], ["last_sign_in_at", "2019-12-11 23:17:26.635315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.635832"], ["id", 1690]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.639576"], ["updated_at", "2019-12-11 23:17:26.639576"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$X6rX9mXNf3N0dR0PstGfTeA5unoQXKDlaXhI0TP5ieM3mv1EB2xZa"], ["created_at", "2019-12-11 23:17:26.648350"], ["updated_at", "2019-12-11 23:17:26.648350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.650933"], ["last_sign_in_at", "2019-12-11 23:17:26.650933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.651460"], ["id", 1691]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.654535"], ["updated_at", "2019-12-11 23:17:26.654535"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bxpWz87z8JsYx/v7fBjd0.Up1ttLhuYNlCeeyKgHiVa0qlyBsBbDG"], ["created_at", "2019-12-11 23:17:26.663449"], ["updated_at", "2019-12-11 23:17:26.663449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.666180"], ["last_sign_in_at", "2019-12-11 23:17:26.666180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.666791"], ["id", 1692]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$c8h6I4rALlqRjv3ry/3RMejKZ/EvBe669YxsHBYmQyNQD/DzHNGHG"], ["created_at", "2019-12-11 23:17:26.677540"], ["updated_at", "2019-12-11 23:17:26.677540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.680376"], ["last_sign_in_at", "2019-12-11 23:17:26.680376"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.680926"], ["id", 1693]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KFrh4XSaQ1pHy2Jc9w6SJOwJZ62HQF0B6MvrJk7RrD3bz9ZrsERyi"], ["created_at", "2019-12-11 23:17:26.691923"], ["updated_at", "2019-12-11 23:17:26.691923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.694927"], ["last_sign_in_at", "2019-12-11 23:17:26.694927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.695584"], ["id", 1694]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ayq6HPb8qu40MxZDoc3OBeAWT7FNiN3.xQzvJCCRbShEdHH99ioni"], ["created_at", "2019-12-11 23:17:26.706513"], ["updated_at", "2019-12-11 23:17:26.706513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.708823"], ["updated_at", "2019-12-11 23:17:26.708823"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1443” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.711569"], ["last_sign_in_at", "2019-12-11 23:17:26.711569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.712137"], ["id", 1695]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1443"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1443], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:17:26.716072"], ["id", 1443]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1443 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zq5VypnbYuTHDsQaJ/TdPusyESTKo7X0vqvj1jtclpAjLzm64QTma"], ["created_at", "2019-12-11 23:17:26.724424"], ["updated_at", "2019-12-11 23:17:26.724424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.726713"], ["updated_at", "2019-12-11 23:17:26.726713"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1444” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.729835"], ["last_sign_in_at", "2019-12-11 23:17:26.729835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.730469"], ["id", 1696]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1444"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1444], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:17:26.734524"], ["id", 1444]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1444 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z343uxDWRxJ3CzlZ3ZImN.GLmw5PRs264iBpLKbq64Jl0kESO3Lli"], ["created_at", "2019-12-11 23:17:26.743545"], ["updated_at", "2019-12-11 23:17:26.743545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.746398"], ["updated_at", "2019-12-11 23:17:26.746398"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1445” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.748949"], ["last_sign_in_at", "2019-12-11 23:17:26.748949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.749533"], ["id", 1697]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1445"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1445], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$flXjxOouY9fcSoK08nFvLuZk/gl2pxHG2pdcsU8mOAQZbAS5MhxtG"], ["created_at", "2019-12-11 23:17:26.764226"], ["updated_at", "2019-12-11 23:17:26.764226"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.766528"], ["updated_at", "2019-12-11 23:17:26.766528"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1446” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.769123"], ["last_sign_in_at", "2019-12-11 23:17:26.769123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.769676"], ["id", 1698]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1446"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1446], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ip4xuS0..j8KQvc9vq03X.aohnADgSp8pZDe4C8NqGHyqDZUJuwCa"], ["created_at", "2019-12-11 23:17:26.784753"], ["updated_at", "2019-12-11 23:17:26.784753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.787549"], ["last_sign_in_at", "2019-12-11 23:17:26.787549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.788065"], ["id", 1699]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UVCfR81JpMMcJkTtXljXl.8FL6zYiOoevB.GgI6VK0q6RobvK/dKu"], ["created_at", "2019-12-11 23:17:26.802382"], ["updated_at", "2019-12-11 23:17:26.802382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.804577"], ["updated_at", "2019-12-11 23:17:26.804577"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1447” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.806458"], ["last_sign_in_at", "2019-12-11 23:17:26.806458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.806952"], ["id", 1700]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1447"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1447], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1447]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h/wYFNzHphSSAlsg7eBH2.YZXcTb1DVAPn0iw8BYWIhSulkYtY7na"], ["created_at", "2019-12-11 23:17:26.818777"], ["updated_at", "2019-12-11 23:17:26.818777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.820860"], ["updated_at", "2019-12-11 23:17:26.820860"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1448” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.822756"], ["last_sign_in_at", "2019-12-11 23:17:26.822756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.823326"], ["id", 1701]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1448"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1448], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1448]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ABhWf1jUKvBX1uGePT/IWuFPajki.PrGLLb6e7e8vaTig6nd/Hb4u"], ["created_at", "2019-12-11 23:17:26.835193"], ["updated_at", "2019-12-11 23:17:26.835193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.837448"], ["updated_at", "2019-12-11 23:17:26.837448"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1449” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.839395"], ["last_sign_in_at", "2019-12-11 23:17:26.839395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.839907"], ["id", 1702]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1449"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XpFFCVmnFQTjxax1sFyHWONqrNcmINLfrY7N1IEzAGPnIfClhuAfu"], ["created_at", "2019-12-11 23:17:26.849441"], ["updated_at", "2019-12-11 23:17:26.849441"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.851676"], ["updated_at", "2019-12-11 23:17:26.851676"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1450” for 127.0.0.1 at 2019-12-11 20:17:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.853555"], ["last_sign_in_at", "2019-12-11 23:17:26.853555"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.854065"], ["id", 1703]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1450"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$J4JY.J0tpxzhyD6XsdpXDu95.IpF79BddtUfSce0YWvOvvSTIJWxi"], ["created_at", "2019-12-11 23:22:44.956681"], ["updated_at", "2019-12-11 23:22:44.956681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:44.965723"], ["updated_at", "2019-12-11 23:22:44.965723"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$5rGpPgGlxjqu8w7Cb0d8k.0xaLPcWG5MUjsgmwuXmciFwATiICYY6"], ["created_at", "2019-12-11 23:22:44.976001"], ["updated_at", "2019-12-11 23:22:44.976001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:44.978325"], ["updated_at", "2019-12-11 23:22:44.978325"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1452], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1705], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1705], ["room_id", 1452], ["created_at", "2019-12-11 23:22:45.030523"], ["updated_at", "2019-12-11 23:22:45.030523"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$4NTN0D07.gUjTFILvMmPJ.jdcDtSH44OfrsodkylCSpcHEZXzGFMS"], ["created_at", "2019-12-11 23:22:45.257221"], ["updated_at", "2019-12-11 23:22:45.257221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.259564"], ["updated_at", "2019-12-11 23:22:45.259564"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1453], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1706], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1706], ["room_id", 1453], ["created_at", "2019-12-11 23:22:45.263597"], ["updated_at", "2019-12-11 23:22:45.263597"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HQYFyTa.2dCt0ng2xHmqleZJ0rdP1jYeguAJ9shsRPsMJxDKq3Emy"], ["created_at", "2019-12-11 23:22:45.272254"], ["updated_at", "2019-12-11 23:22:45.272254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.274702"], ["updated_at", "2019-12-11 23:22:45.274702"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1454], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1707], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1707], ["room_id", 1454], ["created_at", "2019-12-11 23:22:45.278754"], ["updated_at", "2019-12-11 23:22:45.278754"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$v58jCKNqUJZI2jCqI5PdsOoMW74YvqA7cPdrwV4O2/XspKeHbDRJy"], ["created_at", "2019-12-11 23:22:45.288793"], ["updated_at", "2019-12-11 23:22:45.288793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.291442"], ["updated_at", "2019-12-11 23:22:45.291442"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1455"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1455], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1455')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 152ms (Views: 118.5ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$nM4WXJAfZYwhqvsBTMdJTeB14r9ONuUPNcckspWS/7kBJOcKtMaT2"], ["created_at", "2019-12-11 23:22:45.452632"], ["updated_at", "2019-12-11 23:22:45.452632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.455363"], ["updated_at", "2019-12-11 23:22:45.455363"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1456], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1709], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1709], ["room_id", 1456], ["created_at", "2019-12-11 23:22:45.460223"], ["updated_at", "2019-12-11 23:22:45.460223"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1456"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1456], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1456')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$pAdDaW7MJbUsgNMFOlvKwuR7v11ilFzlCm/NVKomJI1k63BX02Mzq"], ["created_at", "2019-12-11 23:22:45.475384"], ["updated_at", "2019-12-11 23:22:45.475384"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.478540"], ["updated_at", "2019-12-11 23:22:45.478540"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1457], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1710], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1710], ["room_id", 1457], ["created_at", "2019-12-11 23:22:45.483936"], ["updated_at", "2019-12-11 23:22:45.483936"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1457"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1457], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1457')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$9mBUPIfkulBWui2MYT0dIO2AQoMcwNo14LvaBGuzKZc/jC/wI5HhO"], ["created_at", "2019-12-11 23:22:45.498769"], ["updated_at", "2019-12-11 23:22:45.498769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.501890"], ["updated_at", "2019-12-11 23:22:45.501890"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1458], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1711], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1711], ["room_id", 1458], ["created_at", "2019-12-11 23:22:45.507885"], ["updated_at", "2019-12-11 23:22:45.507885"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1458"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1458], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1458')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$OZ8J2ektxpo7tX/Nx3xGj.XBUf8cxaw1hq5UiVz5drQGVHxJdzArO"], ["created_at", "2019-12-11 23:22:45.520618"], ["updated_at", "2019-12-11 23:22:45.520618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.523678"], ["updated_at", "2019-12-11 23:22:45.523678"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1459], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1712], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1712], ["room_id", 1459], ["created_at", "2019-12-11 23:22:45.529428"], ["updated_at", "2019-12-11 23:22:45.529428"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1459"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1459], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1459')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 111ms (Views: 78.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$oOheJr1Yeaoe5TWKvj7Ll.yk5VyXnYXg2.kus1DW3HaUjDX7q62q6"], ["created_at", "2019-12-11 23:22:46.138591"], ["updated_at", "2019-12-11 23:22:46.138591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.140832"], ["updated_at", "2019-12-11 23:22:46.140832"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.156897"], ["last_sign_in_at", "2019-12-11 23:22:46.156897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.157568"], ["id", 1713]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1460"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1460], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1713], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1713], ["room_id", 1460], ["created_at", "2019-12-11 23:22:46.165575"], ["updated_at", "2019-12-11 23:22:46.165575"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1460], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rFRqDmlAt181CADuGu2pBej11hcHwqJSiaPdrVqIny55NkWrcXrA6"], ["created_at", "2019-12-11 23:22:46.175558"], ["updated_at", "2019-12-11 23:22:46.175558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.177784"], ["updated_at", "2019-12-11 23:22:46.177784"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.180310"], ["last_sign_in_at", "2019-12-11 23:22:46.180310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.180872"], ["id", 1714]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1461"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1461], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1714], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1714], ["room_id", 1461], ["created_at", "2019-12-11 23:22:46.185786"], ["updated_at", "2019-12-11 23:22:46.185786"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$aJjV5rUKicWICKJ.TBRBAuXDQ0yDU5gyO96dZ42Z5V.anX0HR3Gs."], ["created_at", "2019-12-11 23:22:46.195193"], ["updated_at", "2019-12-11 23:22:46.195193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.197572"], ["updated_at", "2019-12-11 23:22:46.197572"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.200039"], ["last_sign_in_at", "2019-12-11 23:22:46.200039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.200634"], ["id", 1715]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1462"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1462], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$cC/ca0cj6zkE8mVueKEP1.2ruUc7h1WSBscHIczo7I/GW.IN2mY.G"], ["created_at", "2019-12-11 23:22:46.210646"], ["updated_at", "2019-12-11 23:22:46.210646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.212908"], ["updated_at", "2019-12-11 23:22:46.212908"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.215368"], ["last_sign_in_at", "2019-12-11 23:22:46.215368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.215899"], ["id", 1716]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1463"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.VOb/cDdfK0hCet824uahOWKGWtTJV6YYNiGGy7KPu38OHAOwLmFi"], ["created_at", "2019-12-11 23:22:46.226574"], ["updated_at", "2019-12-11 23:22:46.226574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.229028"], ["updated_at", "2019-12-11 23:22:46.229028"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1464], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1717], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1717], ["room_id", 1464], ["created_at", "2019-12-11 23:22:46.233937"], ["updated_at", "2019-12-11 23:22:46.233937"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1464” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.236431"], ["last_sign_in_at", "2019-12-11 23:22:46.236431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.236907"], ["id", 1717]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1464"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1464], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1464')[0m
Rendered appointments/show.html.erb within layouts/application (21.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)
Completed 200 OK in 359ms (Views: 340.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jd2XYEjphL0auDpr2Jq59OcaPXrcXIXMknNStlP6eVXWqSOp2N3Wy"], ["created_at", "2019-12-11 23:22:46.605950"], ["updated_at", "2019-12-11 23:22:46.605950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.608033"], ["updated_at", "2019-12-11 23:22:46.608033"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1465], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1718], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1718], ["room_id", 1465], ["created_at", "2019-12-11 23:22:46.611877"], ["updated_at", "2019-12-11 23:22:46.611877"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1465], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1718], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1718], ["room_id", 1465], ["created_at", "2019-12-11 23:22:46.615563"], ["updated_at", "2019-12-11 23:22:46.615563"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.617733"], ["last_sign_in_at", "2019-12-11 23:22:46.617733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.618299"], ["id", 1718]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1718]] Rendered appointments/my_appointments.html.erb within layouts/application (21.8ms)
Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jMJddtJ6xHKytxDNXpb/VuxzH9tVhw8ywYQiMU0LwkOHilp50qXoC"], ["created_at", "2019-12-11 23:22:46.680439"], ["updated_at", "2019-12-11 23:22:46.680439"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.682645"], ["updated_at", "2019-12-11 23:22:46.682645"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1466], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1719], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1719], ["room_id", 1466], ["created_at", "2019-12-11 23:22:46.686557"], ["updated_at", "2019-12-11 23:22:46.686557"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1466], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1719], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1719], ["room_id", 1466], ["created_at", "2019-12-11 23:22:46.691060"], ["updated_at", "2019-12-11 23:22:46.691060"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.693537"], ["last_sign_in_at", "2019-12-11 23:22:46.693537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.694072"], ["id", 1719]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1719]] Rendered appointments/my_appointments.html.erb within layouts/application (18.3ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1inDCYGvNa7OTPtbvd/M2OaKMCjCwxTTvIWjDcAFw7tJsgTnzj.qO"], ["created_at", "2019-12-11 23:22:46.722994"], ["updated_at", "2019-12-11 23:22:46.722994"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.725131"], ["updated_at", "2019-12-11 23:22:46.725131"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1467], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1720], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1720], ["room_id", 1467], ["created_at", "2019-12-11 23:22:46.729239"], ["updated_at", "2019-12-11 23:22:46.729239"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/798” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.731594"], ["last_sign_in_at", "2019-12-11 23:22:46.731594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.732121"], ["id", 1720]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"798"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 798], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 798]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kvdV1ojZ5yxJXFeP38GSZu1ruFf2hPJ5y6kvvl4jBjl3oRUEhHzJ."], ["created_at", "2019-12-11 23:22:46.746469"], ["updated_at", "2019-12-11 23:22:46.746469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.748936"], ["last_sign_in_at", "2019-12-11 23:22:46.748936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.749515"], ["id", 1721]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 36ms (Views: 19.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.ZAtDUar7K/kuLL3cE.rUOzDLshAHWUVZZYjAlvXJA.66EEvtuaD6"], ["created_at", "2019-12-11 23:22:46.794564"], ["updated_at", "2019-12-11 23:22:46.794564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.796647"], ["updated_at", "2019-12-11 23:22:46.796647"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1468], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1722], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1722], ["room_id", 1468], ["created_at", "2019-12-11 23:22:46.800366"], ["updated_at", "2019-12-11 23:22:46.800366"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1468], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1722], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1722], ["room_id", 1468], ["created_at", "2019-12-11 23:22:46.803848"], ["updated_at", "2019-12-11 23:22:46.803848"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.806506"], ["last_sign_in_at", "2019-12-11 23:22:46.806506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.807079"], ["id", 1722]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1468], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1722], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1722], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$krTttsElcs/ykNza8cUtcebIv0IpgCGbpQQp938v/0TLoZE/sFKeq"], ["created_at", "2019-12-11 23:22:46.820497"], ["updated_at", "2019-12-11 23:22:46.820497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.823515"], ["updated_at", "2019-12-11 23:22:46.823515"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1469], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1723], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1723], ["room_id", 1469], ["created_at", "2019-12-11 23:22:46.827963"], ["updated_at", "2019-12-11 23:22:46.827963"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1469], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1723], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1723], ["room_id", 1469], ["created_at", "2019-12-11 23:22:46.831625"], ["updated_at", "2019-12-11 23:22:46.831625"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.833655"], ["last_sign_in_at", "2019-12-11 23:22:46.833655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.834166"], ["id", 1723]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1469], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1723], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1723], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$drUq.SVrM13rNBicZruZauqpzLE8AAkOqdQpPXw5vifVZxX20niEa"], ["created_at", "2019-12-11 23:22:46.849367"], ["updated_at", "2019-12-11 23:22:46.849367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.851336"], ["updated_at", "2019-12-11 23:22:46.851336"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1470], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1724], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1724], ["room_id", 1470], ["created_at", "2019-12-11 23:22:46.855391"], ["updated_at", "2019-12-11 23:22:46.855391"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1470], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1724], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1724], ["room_id", 1470], ["created_at", "2019-12-11 23:22:46.859151"], ["updated_at", "2019-12-11 23:22:46.859151"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.861361"], ["last_sign_in_at", "2019-12-11 23:22:46.861361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.862066"], ["id", 1724]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u7I5hTv0SFgUBLi8PjeLsucjvnlPZJD0bP3RLXizYH2zj/ITMOegK"], ["created_at", "2019-12-11 23:22:46.873034"], ["updated_at", "2019-12-11 23:22:46.873034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.875237"], ["updated_at", "2019-12-11 23:22:46.875237"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1471], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1725], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1725], ["room_id", 1471], ["created_at", "2019-12-11 23:22:46.879084"], ["updated_at", "2019-12-11 23:22:46.879084"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1471], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1725], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1725], ["room_id", 1471], ["created_at", "2019-12-11 23:22:46.882804"], ["updated_at", "2019-12-11 23:22:46.882804"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.884954"], ["last_sign_in_at", "2019-12-11 23:22:46.884954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.885463"], ["id", 1725]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mnThXf.wQwxTEdj.mTrgyuFZDN7a1cdsAXVWUKmsXozb0vlJ0mQXO"], ["created_at", "2019-12-11 23:22:46.900273"], ["updated_at", "2019-12-11 23:22:46.900273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.902828"], ["last_sign_in_at", "2019-12-11 23:22:46.902828"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.903342"], ["id", 1726]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 66ms (Views: 49.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b16kIcKRoAn3O6siuEoDoe3UadYKxwYi2h2K67RvSD4gSdvNIaWrG"], ["created_at", "2019-12-11 23:22:46.981217"], ["updated_at", "2019-12-11 23:22:46.981217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.983645"], ["last_sign_in_at", "2019-12-11 23:22:46.983645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.984097"], ["id", 1727]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xQIuifxoMGs/i0XwlbbPHujghUtPmkX.3llqlxktj6zBojbJ1oo6m"], ["created_at", "2019-12-11 23:22:46.994086"], ["updated_at", "2019-12-11 23:22:46.994086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:22:46 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.996520"], ["last_sign_in_at", "2019-12-11 23:22:46.996520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.997006"], ["id", 1728]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MtIKU8fgByPFLoQA39Cb0eD0ZqW1NLyTBsa2IvsY3zSqO6TFKMy5G"], ["created_at", "2019-12-11 23:22:47.025494"], ["updated_at", "2019-12-11 23:22:47.025494"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.027656"], ["last_sign_in_at", "2019-12-11 23:22:47.027656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.028208"], ["id", 1729]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Is.PsO6GeeT6PKT.K5/HMeHTZABN6/2vb/xlxASYWyNBb3E/GvWpa"], ["created_at", "2019-12-11 23:22:47.048493"], ["updated_at", "2019-12-11 23:22:47.048493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.050711"], ["updated_at", "2019-12-11 23:22:47.050711"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1472” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.052732"], ["last_sign_in_at", "2019-12-11 23:22:47.052732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.053208"], ["id", 1730]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1472"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1472], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tqlRihFhdW4XLwu1dnzUv.ME3kK0kreOL27gLZVSlTxlsYyox30yy"], ["created_at", "2019-12-11 23:22:47.082332"], ["updated_at", "2019-12-11 23:22:47.082332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.084579"], ["updated_at", "2019-12-11 23:22:47.084579"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1473” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.086918"], ["last_sign_in_at", "2019-12-11 23:22:47.086918"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.087676"], ["id", 1731]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1473"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1473], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.110783"], ["updated_at", "2019-12-11 23:22:47.110783"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1474” for 127.0.0.1 at 2019-12-11 20:22:47 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1474"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NiOJfpQv2tTr.RmyhDuAzuuxDeQ8KLNRZoWFbPDTJRwZ6L2JEw9vq"], ["created_at", "2019-12-11 23:22:47.121573"], ["updated_at", "2019-12-11 23:22:47.121573"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.123835"], ["updated_at", "2019-12-11 23:22:47.123835"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1475/edit” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.125877"], ["last_sign_in_at", "2019-12-11 23:22:47.125877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.126401"], ["id", 1732]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1475"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1475], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Syb0QmrNG/KrO9foE5JTx.cX488sG1kmL5G.WbllEnT/YI.Wf0KYu"], ["created_at", "2019-12-11 23:22:47.155627"], ["updated_at", "2019-12-11 23:22:47.155627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.158014"], ["updated_at", "2019-12-11 23:22:47.158014"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1476/edit” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.160352"], ["last_sign_in_at", "2019-12-11 23:22:47.160352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.160883"], ["id", 1733]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1476"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1476], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.172389"], ["updated_at", "2019-12-11 23:22:47.172389"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1477” for 127.0.0.1 at 2019-12-11 20:22:47 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1477"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$11THrNqrt.IvUg886MxKPOXYZ4zVQcfEdAWzc36n3kIdsSbZiUqMy"], ["created_at", "2019-12-11 23:22:47.183512"], ["updated_at", "2019-12-11 23:22:47.183512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.186164"], ["last_sign_in_at", "2019-12-11 23:22:47.186164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.186718"], ["id", 1734]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.191250"], ["updated_at", "2019-12-11 23:22:47.191250"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fjuA7CSLUzNPfDvXkYE49ucIlWQqOuTTyYCJGm3SufxGCUnnssDZG"], ["created_at", "2019-12-11 23:22:47.200123"], ["updated_at", "2019-12-11 23:22:47.200123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.202808"], ["last_sign_in_at", "2019-12-11 23:22:47.202808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.203286"], ["id", 1735]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.207087"], ["updated_at", "2019-12-11 23:22:47.207087"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M/Rd0eUHl2YMdcxEJm8nMOvkMce6.wYHQjGoxNvACRDelvDwhciM2"], ["created_at", "2019-12-11 23:22:47.215671"], ["updated_at", "2019-12-11 23:22:47.215671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.218482"], ["last_sign_in_at", "2019-12-11 23:22:47.218482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.218977"], ["id", 1736]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JU3jpQ.01ktZecFwvYfqheuBuX32qpWA2Rfa0QX8Rb6KQto.tRbgO"], ["created_at", "2019-12-11 23:22:47.231583"], ["updated_at", "2019-12-11 23:22:47.231583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.234203"], ["last_sign_in_at", "2019-12-11 23:22:47.234203"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.234785"], ["id", 1737]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gWrIMpTTy6VkzDWEgqDYSOO3lmimDlXdFbKD6y/EAElvCo0lOwLzu"], ["created_at", "2019-12-11 23:22:47.247583"], ["updated_at", "2019-12-11 23:22:47.247583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.250219"], ["last_sign_in_at", "2019-12-11 23:22:47.250219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.250871"], ["id", 1738]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rAW51aqTKD6TyAeumAWwGOVJona3ybVCaawMSKs.orzde1mZ.CYmy"], ["created_at", "2019-12-11 23:22:47.261152"], ["updated_at", "2019-12-11 23:22:47.261152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.263437"], ["updated_at", "2019-12-11 23:22:47.263437"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1480” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.265827"], ["last_sign_in_at", "2019-12-11 23:22:47.265827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.266340"], ["id", 1739]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1480"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1480], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:22:47.270303"], ["id", 1480]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1480 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b3/UUNnzBpUqh0CGwvhmzOaZ/JqVL5V9CBV/E23DRvForPmAkZmte"], ["created_at", "2019-12-11 23:22:47.278971"], ["updated_at", "2019-12-11 23:22:47.278971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.281323"], ["updated_at", "2019-12-11 23:22:47.281323"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1481” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.284700"], ["last_sign_in_at", "2019-12-11 23:22:47.284700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.285182"], ["id", 1740]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1481"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1481], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:22:47.289108"], ["id", 1481]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1481 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PEvkwMWjj9A2wVAkkDdQpugbUVpBJCsKxpRPCsK63V0nc3nCkr3w6"], ["created_at", "2019-12-11 23:22:47.297306"], ["updated_at", "2019-12-11 23:22:47.297306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.299560"], ["updated_at", "2019-12-11 23:22:47.299560"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1482” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.301937"], ["last_sign_in_at", "2019-12-11 23:22:47.301937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.302483"], ["id", 1741]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1482"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1482], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o7FlWCIvbMej4flB4S1hYuCIPTL/Y5fnWF7AyU.UrjzmuZTEWA3cK"], ["created_at", "2019-12-11 23:22:47.317268"], ["updated_at", "2019-12-11 23:22:47.317268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.319572"], ["updated_at", "2019-12-11 23:22:47.319572"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1483” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.322592"], ["last_sign_in_at", "2019-12-11 23:22:47.322592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.323180"], ["id", 1742]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1483"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1483], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ig9bppfxQSe5CUmXahs2pe9H10aVyz/qyrlzn3RaoYOii.ZX8831K"], ["created_at", "2019-12-11 23:22:47.338644"], ["updated_at", "2019-12-11 23:22:47.338644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.341590"], ["last_sign_in_at", "2019-12-11 23:22:47.341590"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.342156"], ["id", 1743]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sjYNVUgJx2Jp98t5ftRDWuXrC8BI9suyPzOuSFizYXhJ0mzp79Mhe"], ["created_at", "2019-12-11 23:22:47.352157"], ["updated_at", "2019-12-11 23:22:47.352157"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.354711"], ["updated_at", "2019-12-11 23:22:47.354711"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1484” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.357071"], ["last_sign_in_at", "2019-12-11 23:22:47.357071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.357620"], ["id", 1744]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1484"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1484], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1484]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YZcLnI7lb7fyHt4nszhFye8YX1.JyAN6mmxtA6PkhJu6cuMMdA1x."], ["created_at", "2019-12-11 23:22:47.369220"], ["updated_at", "2019-12-11 23:22:47.369220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.371942"], ["updated_at", "2019-12-11 23:22:47.371942"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1485” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.374278"], ["last_sign_in_at", "2019-12-11 23:22:47.374278"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.374824"], ["id", 1745]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1485"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1485], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1485]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NfCWHU9lYgpdE2avpNG5qOnqW3dRjahjgHI1LL0Il5ypz.M1p.daG"], ["created_at", "2019-12-11 23:22:47.387065"], ["updated_at", "2019-12-11 23:22:47.387065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.390106"], ["updated_at", "2019-12-11 23:22:47.390106"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1486” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.392425"], ["last_sign_in_at", "2019-12-11 23:22:47.392425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.392975"], ["id", 1746]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1486"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YAoDaHAgqqBh2sxvhqppbOFFNMTpDSyMO5FnCGOY68nMD7of6f/8O"], ["created_at", "2019-12-11 23:22:47.403363"], ["updated_at", "2019-12-11 23:22:47.403363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.406467"], ["updated_at", "2019-12-11 23:22:47.406467"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1487” for 127.0.0.1 at 2019-12-11 20:22:47 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.408590"], ["last_sign_in_at", "2019-12-11 23:22:47.408590"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.409302"], ["id", 1747]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1487"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$lCJv0RFUqeqIGGKIbkI4jufsxPr895XZM.SQK7Cg.eJFu6NFn.PLy"], ["created_at", "2019-12-11 23:24:49.562755"], ["updated_at", "2019-12-11 23:24:49.562755"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.571566"], ["updated_at", "2019-12-11 23:24:49.571566"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sT1AnQiiRRvd/zNn7WM4deefy8b0CVxGDEqqt3Dog6fzF94ddQ9sC"], ["created_at", "2019-12-11 23:24:49.581006"], ["updated_at", "2019-12-11 23:24:49.581006"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.583420"], ["updated_at", "2019-12-11 23:24:49.583420"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1489], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1749], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1749], ["room_id", 1489], ["created_at", "2019-12-11 23:24:49.632149"], ["updated_at", "2019-12-11 23:24:49.632149"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yGH1GNxJSw/YG/Pq8L478O1iBRPjmLur87KXgMjvYgyJqfNH24Eo."], ["created_at", "2019-12-11 23:24:49.676396"], ["updated_at", "2019-12-11 23:24:49.676396"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.678861"], ["updated_at", "2019-12-11 23:24:49.678861"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1490], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1750], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1750], ["room_id", 1490], ["created_at", "2019-12-11 23:24:49.683126"], ["updated_at", "2019-12-11 23:24:49.683126"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$odMWWopYDbe0lp1Dsx5XaOLRqwR30sBKv8mKCaO2OZEfM4ik3wUd2"], ["created_at", "2019-12-11 23:24:49.691775"], ["updated_at", "2019-12-11 23:24:49.691775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.694803"], ["updated_at", "2019-12-11 23:24:49.694803"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1491], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1751], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1751], ["room_id", 1491], ["created_at", "2019-12-11 23:24:49.699140"], ["updated_at", "2019-12-11 23:24:49.699140"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$GdimYayNxefy90iqxvzTquQ69I9HhKzesRtVChK2uu0y8ti3FWifS"], ["created_at", "2019-12-11 23:24:49.710069"], ["updated_at", "2019-12-11 23:24:49.710069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.713049"], ["updated_at", "2019-12-11 23:24:49.713049"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1492"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1492], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1492')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 151ms (Views: 116.0ms | ActiveRecord: 1.0ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ye11Ya.Qi6a8d62fNs2H8e5TKui5OMBS0bfpdFR4qxDTSF.lUOMPW"], ["created_at", "2019-12-11 23:24:49.874327"], ["updated_at", "2019-12-11 23:24:49.874327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.877070"], ["updated_at", "2019-12-11 23:24:49.877070"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1493], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1753], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1753], ["room_id", 1493], ["created_at", "2019-12-11 23:24:49.881671"], ["updated_at", "2019-12-11 23:24:49.881671"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1493"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1493], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1493')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$f.jXFTaXVD2DGt0IYkS6re9LT0uUwuDMLUllaDNpmTcGfLOtkxeKe"], ["created_at", "2019-12-11 23:24:49.898270"], ["updated_at", "2019-12-11 23:24:49.898270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.900564"], ["updated_at", "2019-12-11 23:24:49.900564"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1494], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1754], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1754], ["room_id", 1494], ["created_at", "2019-12-11 23:24:49.905024"], ["updated_at", "2019-12-11 23:24:49.905024"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1494"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1494], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1494')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$vw7OWnnFglL1D5/U3w2/hOZmYVhAUYCckygQezCeCtHvEiOEiO7LC"], ["created_at", "2019-12-11 23:24:49.917274"], ["updated_at", "2019-12-11 23:24:49.917274"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.919787"], ["updated_at", "2019-12-11 23:24:49.919787"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1495], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1755], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1755], ["room_id", 1495], ["created_at", "2019-12-11 23:24:49.924034"], ["updated_at", "2019-12-11 23:24:49.924034"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1495"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1495], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1495')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fa5pYwTBHDzdNm2yncxdOeu3ECma.lxMMBV3HS1f9x5m0jmgbt9Sm"], ["created_at", "2019-12-11 23:24:49.935045"], ["updated_at", "2019-12-11 23:24:49.935045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.937265"], ["updated_at", "2019-12-11 23:24:49.937265"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1496], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1756], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1756], ["room_id", 1496], ["created_at", "2019-12-11 23:24:49.941101"], ["updated_at", "2019-12-11 23:24:49.941101"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1496"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1496], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1496')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 112ms (Views: 76.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$G7FjBlcaOpu8E2KGFBIr3.IdomoV8WexzVsv.I/DaHawWPww13EiC"], ["created_at", "2019-12-11 23:24:50.551836"], ["updated_at", "2019-12-11 23:24:50.551836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.554160"], ["updated_at", "2019-12-11 23:24:50.554160"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.570798"], ["last_sign_in_at", "2019-12-11 23:24:50.570798"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.571480"], ["id", 1757]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1497"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1497], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1757], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1757], ["room_id", 1497], ["created_at", "2019-12-11 23:24:50.580066"], ["updated_at", "2019-12-11 23:24:50.580066"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1497], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$9wTr0uL90wuzJ4s8xn9fnemAir5E64xOneUmm6rh44F4audNI2Mvi"], ["created_at", "2019-12-11 23:24:50.594051"], ["updated_at", "2019-12-11 23:24:50.594051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.596611"], ["updated_at", "2019-12-11 23:24:50.596611"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.599227"], ["last_sign_in_at", "2019-12-11 23:24:50.599227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.599795"], ["id", 1758]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1498"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1498], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1758], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1758], ["room_id", 1498], ["created_at", "2019-12-11 23:24:50.604746"], ["updated_at", "2019-12-11 23:24:50.604746"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TW2gGg6nE6O0xiLpQHhEBevwpyYBg.vgw6oUsI8vjUhYvUO1kSqRG"], ["created_at", "2019-12-11 23:24:50.613825"], ["updated_at", "2019-12-11 23:24:50.613825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.616112"], ["updated_at", "2019-12-11 23:24:50.616112"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.618877"], ["last_sign_in_at", "2019-12-11 23:24:50.618877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.619423"], ["id", 1759]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1499"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1499], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$mO7mhPbLDFMLLXO88FTcN.adoMtiCQxxUbWomOUjtGYkuJLFg8pWK"], ["created_at", "2019-12-11 23:24:50.629467"], ["updated_at", "2019-12-11 23:24:50.629467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.631862"], ["updated_at", "2019-12-11 23:24:50.631862"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.634218"], ["last_sign_in_at", "2019-12-11 23:24:50.634218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.634781"], ["id", 1760]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1500"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$nqUE7I5F34Pkn.LZpHMbp.GuPejArXlMVA7swIqIJ7FM7IqrR4JAa"], ["created_at", "2019-12-11 23:24:50.645432"], ["updated_at", "2019-12-11 23:24:50.645432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.647745"], ["updated_at", "2019-12-11 23:24:50.647745"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1501], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1761], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1761], ["room_id", 1501], ["created_at", "2019-12-11 23:24:50.651625"], ["updated_at", "2019-12-11 23:24:50.651625"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1501” for 127.0.0.1 at 2019-12-11 20:24:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.654009"], ["last_sign_in_at", "2019-12-11 23:24:50.654009"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.654546"], ["id", 1761]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1501"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1501], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1501')[0m
Rendered appointments/show.html.erb within layouts/application (31.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 383ms (Views: 364.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qIXm5RiJwMIWUU7mQILI9.kMsjzUFHTdBDFArxquQK8GzrqikNM2y"], ["created_at", "2019-12-11 23:24:51.046822"], ["updated_at", "2019-12-11 23:24:51.046822"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.048967"], ["updated_at", "2019-12-11 23:24:51.048967"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1502], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1762], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1762], ["room_id", 1502], ["created_at", "2019-12-11 23:24:51.052869"], ["updated_at", "2019-12-11 23:24:51.052869"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1502], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1762], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1762], ["room_id", 1502], ["created_at", "2019-12-11 23:24:51.056759"], ["updated_at", "2019-12-11 23:24:51.056759"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.059262"], ["last_sign_in_at", "2019-12-11 23:24:51.059262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.059865"], ["id", 1762]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1762]] Rendered appointments/my_appointments.html.erb within layouts/application (21.5ms)
Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Nt01weUjBWLmnznW1KDsce0RkKHdOo4cIlOUaWQw.LMQyBSg94.hS"], ["created_at", "2019-12-11 23:24:51.122502"], ["updated_at", "2019-12-11 23:24:51.122502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.124925"], ["updated_at", "2019-12-11 23:24:51.124925"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1503], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1763], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1763], ["room_id", 1503], ["created_at", "2019-12-11 23:24:51.129106"], ["updated_at", "2019-12-11 23:24:51.129106"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1503], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1763], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1763], ["room_id", 1503], ["created_at", "2019-12-11 23:24:51.133016"], ["updated_at", "2019-12-11 23:24:51.133016"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.135409"], ["last_sign_in_at", "2019-12-11 23:24:51.135409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.136013"], ["id", 1763]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1763]] Rendered appointments/my_appointments.html.erb within layouts/application (17.6ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IOmgNnbmvKown6dwrRgmTOkrLmJRrB2k/PtlQPn7W1roKkOIFsz2O"], ["created_at", "2019-12-11 23:24:51.164529"], ["updated_at", "2019-12-11 23:24:51.164529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.166886"], ["updated_at", "2019-12-11 23:24:51.166886"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1504], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1764], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1764], ["room_id", 1504], ["created_at", "2019-12-11 23:24:51.171417"], ["updated_at", "2019-12-11 23:24:51.171417"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/821” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.173661"], ["last_sign_in_at", "2019-12-11 23:24:51.173661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.174166"], ["id", 1764]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"821"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 821], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 821]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VU9HiXjnC3QsB9AvPlbytOLPstZCCu158UWeLCWYkLTWIrYEB4xeC"], ["created_at", "2019-12-11 23:24:51.189713"], ["updated_at", "2019-12-11 23:24:51.189713"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.192325"], ["last_sign_in_at", "2019-12-11 23:24:51.192325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.193074"], ["id", 1765]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.4ms)
Completed 200 OK in 36ms (Views: 19.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KSJoy932c3Hqyz43WXEuIOZU00ELNf.wHAaNdYYy5iag1bwjstPMC"], ["created_at", "2019-12-11 23:24:51.238250"], ["updated_at", "2019-12-11 23:24:51.238250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.240821"], ["updated_at", "2019-12-11 23:24:51.240821"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1505], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1766], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1766], ["room_id", 1505], ["created_at", "2019-12-11 23:24:51.245683"], ["updated_at", "2019-12-11 23:24:51.245683"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1505], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1766], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1766], ["room_id", 1505], ["created_at", "2019-12-11 23:24:51.250976"], ["updated_at", "2019-12-11 23:24:51.250976"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.255201"], ["last_sign_in_at", "2019-12-11 23:24:51.255201"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.255833"], ["id", 1766]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1505], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1766], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1766], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (4.5ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VJRLobhLDNSpyosLJuxz2.G18Zknwlme9MH6ndHxJC9hGllmVXbMm"], ["created_at", "2019-12-11 23:24:51.276802"], ["updated_at", "2019-12-11 23:24:51.276802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.279850"], ["updated_at", "2019-12-11 23:24:51.279850"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1506], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1767], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1767], ["room_id", 1506], ["created_at", "2019-12-11 23:24:51.285405"], ["updated_at", "2019-12-11 23:24:51.285405"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1506], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1767], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1767], ["room_id", 1506], ["created_at", "2019-12-11 23:24:51.290320"], ["updated_at", "2019-12-11 23:24:51.290320"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.293727"], ["last_sign_in_at", "2019-12-11 23:24:51.293727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.294651"], ["id", 1767]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1506], ["LIMIT", 1]] [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1767], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1767], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8wk6E82itdPFg6oNnsa3G.ekx5wNXua71luDq6es1nAxh7I1jNBuC"], ["created_at", "2019-12-11 23:24:51.314327"], ["updated_at", "2019-12-11 23:24:51.314327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.317177"], ["updated_at", "2019-12-11 23:24:51.317177"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1507], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1768], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1768], ["room_id", 1507], ["created_at", "2019-12-11 23:24:51.321965"], ["updated_at", "2019-12-11 23:24:51.321965"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1507], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1768], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1768], ["room_id", 1507], ["created_at", "2019-12-11 23:24:51.327409"], ["updated_at", "2019-12-11 23:24:51.327409"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.330476"], ["last_sign_in_at", "2019-12-11 23:24:51.330476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.331053"], ["id", 1768]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rb89U8IrnhuTqve31Jfihe.RG3YckJ.3p98btt6yBfOqOHfcBLlt6"], ["created_at", "2019-12-11 23:24:51.345282"], ["updated_at", "2019-12-11 23:24:51.345282"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.347913"], ["updated_at", "2019-12-11 23:24:51.347913"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1508], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1769], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1769], ["room_id", 1508], ["created_at", "2019-12-11 23:24:51.352645"], ["updated_at", "2019-12-11 23:24:51.352645"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1508], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1769], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1769], ["room_id", 1508], ["created_at", "2019-12-11 23:24:51.358833"], ["updated_at", "2019-12-11 23:24:51.358833"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.362541"], ["last_sign_in_at", "2019-12-11 23:24:51.362541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.363080"], ["id", 1769]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.5ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$piIbLxG.5p8QYPJHl2XSWev6EX5Lo7jphki.VPfW8nsSPt8a1.twO"], ["created_at", "2019-12-11 23:24:51.379404"], ["updated_at", "2019-12-11 23:24:51.379404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.382578"], ["last_sign_in_at", "2019-12-11 23:24:51.382578"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.383129"], ["id", 1770]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (11.8ms) Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 71ms (Views: 53.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zdgIdfCUVHvkvqOlE3A38O4wAxea2qkUd2u7kfBvco4BHMg.42xWm"], ["created_at", "2019-12-11 23:24:51.469481"], ["updated_at", "2019-12-11 23:24:51.469481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.472989"], ["last_sign_in_at", "2019-12-11 23:24:51.472989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.473598"], ["id", 1771]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/yjrZV5GvPpBgRTLwinKTuPAN3vau4NvZ/eu98j033l42gP3pWz7."], ["created_at", "2019-12-11 23:24:51.484868"], ["updated_at", "2019-12-11 23:24:51.484868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.487782"], ["last_sign_in_at", "2019-12-11 23:24:51.487782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.488368"], ["id", 1772]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.7ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 28ms (Views: 11.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DYdcGuU.X.LOWFHwvhW28eQxPJCKGbUt/Hk3v062lioRsKdBEPKA6"], ["created_at", "2019-12-11 23:24:51.524404"], ["updated_at", "2019-12-11 23:24:51.524404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.526941"], ["last_sign_in_at", "2019-12-11 23:24:51.526941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.527451"], ["id", 1773]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ALrfS2/Rlk8OjkmzThuYhu03CWTVoOxirltFCNKvnnofRuAFdAg8W"], ["created_at", "2019-12-11 23:24:51.547168"], ["updated_at", "2019-12-11 23:24:51.547168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.549523"], ["updated_at", "2019-12-11 23:24:51.549523"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1509” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.551600"], ["last_sign_in_at", "2019-12-11 23:24:51.551600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.552107"], ["id", 1774]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1509"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1509], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UV3.ou8w7WSjjC594g41du7LNOGPBTswdCnGCG0PVt0BASSeU.0Uy"], ["created_at", "2019-12-11 23:24:51.579132"], ["updated_at", "2019-12-11 23:24:51.579132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.581093"], ["updated_at", "2019-12-11 23:24:51.581093"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1510” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.582961"], ["last_sign_in_at", "2019-12-11 23:24:51.582961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.583463"], ["id", 1775]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1510"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1510], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.592648"], ["updated_at", "2019-12-11 23:24:51.592648"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1511” for 127.0.0.1 at 2019-12-11 20:24:51 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1511"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2kSuolqFg3nZwQCReQt9gumQJjwcLeIxBH4qPCiggBxBNXhiY93/y"], ["created_at", "2019-12-11 23:24:51.602438"], ["updated_at", "2019-12-11 23:24:51.602438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.604549"], ["updated_at", "2019-12-11 23:24:51.604549"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1512/edit” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.606499"], ["last_sign_in_at", "2019-12-11 23:24:51.606499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.606975"], ["id", 1776]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1512"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1512], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W7vFeoQleacLndn1bvo66OqDlU9IoLLw1WF8wWl5HOb8UkL3alP0C"], ["created_at", "2019-12-11 23:24:51.635517"], ["updated_at", "2019-12-11 23:24:51.635517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.637624"], ["updated_at", "2019-12-11 23:24:51.637624"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1513/edit” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.639614"], ["last_sign_in_at", "2019-12-11 23:24:51.639614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.640097"], ["id", 1777]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1513"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1513], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.650574"], ["updated_at", "2019-12-11 23:24:51.650574"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1514” for 127.0.0.1 at 2019-12-11 20:24:51 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1514"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lyCRCxnLQQkWONHrhAN9t.0VHcY2Zr1kwv7r8i9o86oKSr6dqCLk6"], ["created_at", "2019-12-11 23:24:51.660873"], ["updated_at", "2019-12-11 23:24:51.660873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.663361"], ["last_sign_in_at", "2019-12-11 23:24:51.663361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.663844"], ["id", 1778]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.667058"], ["updated_at", "2019-12-11 23:24:51.667058"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PI1kON0d8creukDCgTg3dejV6FPoIKE.RUtL6T06z.VQCHBOtB2Oq"], ["created_at", "2019-12-11 23:24:51.674748"], ["updated_at", "2019-12-11 23:24:51.674748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.677879"], ["last_sign_in_at", "2019-12-11 23:24:51.677879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.678400"], ["id", 1779]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.681971"], ["updated_at", "2019-12-11 23:24:51.681971"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hwZ9haQ.4oNkaDM16MVFDeYW0pd4ZnBU6dtAMDcso7Z4JRIAU2mUO"], ["created_at", "2019-12-11 23:24:51.689851"], ["updated_at", "2019-12-11 23:24:51.689851"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.692768"], ["last_sign_in_at", "2019-12-11 23:24:51.692768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.693318"], ["id", 1780]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$08julISbCUxckz3k44NKRejfdBwaedfgmoUW7FzzTjwlcxQ7aH3oO"], ["created_at", "2019-12-11 23:24:51.703044"], ["updated_at", "2019-12-11 23:24:51.703044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.705520"], ["last_sign_in_at", "2019-12-11 23:24:51.705520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.706055"], ["id", 1781]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6LutFEIzONvpMxCxtxXMzu9OrseKPq10yXbHKcurSj5vEK5PRIwFu"], ["created_at", "2019-12-11 23:24:51.717059"], ["updated_at", "2019-12-11 23:24:51.717059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.719664"], ["last_sign_in_at", "2019-12-11 23:24:51.719664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.720315"], ["id", 1782]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RSU1bWr2mltKTeqSm5W1mOJUwTzZITDufG2FSllmz9TGF4cIGxewC"], ["created_at", "2019-12-11 23:24:51.731121"], ["updated_at", "2019-12-11 23:24:51.731121"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.733173"], ["updated_at", "2019-12-11 23:24:51.733173"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1517” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.735404"], ["last_sign_in_at", "2019-12-11 23:24:51.735404"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.735917"], ["id", 1783]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1517"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1517], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:24:51.739704"], ["id", 1517]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1517 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NsNFM6.daViq4QKNKe2dme8Kn5aTAjDsPiAyS5gGEw/scN1t1.C/S"], ["created_at", "2019-12-11 23:24:51.747815"], ["updated_at", "2019-12-11 23:24:51.747815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.750067"], ["updated_at", "2019-12-11 23:24:51.750067"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1518” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.752313"], ["last_sign_in_at", "2019-12-11 23:24:51.752313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.752810"], ["id", 1784]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1518"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1518], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:24:51.756567"], ["id", 1518]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1518 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/IsZWQeddZs4En9eMsEbUOV8nlbQgj77JvaNoppu5sVhICo.A4z5K"], ["created_at", "2019-12-11 23:24:51.765017"], ["updated_at", "2019-12-11 23:24:51.765017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.767083"], ["updated_at", "2019-12-11 23:24:51.767083"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1519” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.769301"], ["last_sign_in_at", "2019-12-11 23:24:51.769301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.769791"], ["id", 1785]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1519"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1519], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DorSyJOtXxLCYlylk86XROPcbKs4M3kKOCVrJA1ZLoBfodKTefhfC"], ["created_at", "2019-12-11 23:24:51.783427"], ["updated_at", "2019-12-11 23:24:51.783427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.785464"], ["updated_at", "2019-12-11 23:24:51.785464"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1520” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.787594"], ["last_sign_in_at", "2019-12-11 23:24:51.787594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.788121"], ["id", 1786]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1520"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1520], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/LgtChgpYjOBdnaAKf7P0.ZEigJu7dAcI.Xb2jmnzf1mliJ2M0No."], ["created_at", "2019-12-11 23:24:51.802896"], ["updated_at", "2019-12-11 23:24:51.802896"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.805403"], ["last_sign_in_at", "2019-12-11 23:24:51.805403"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.805919"], ["id", 1787]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pYUGAfPBOPRHPHiDXyMqo.V2NN7FTeZejQ2f7TpY2AtOfGub7Irr6"], ["created_at", "2019-12-11 23:24:51.815623"], ["updated_at", "2019-12-11 23:24:51.815623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.818193"], ["updated_at", "2019-12-11 23:24:51.818193"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1521” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.820029"], ["last_sign_in_at", "2019-12-11 23:24:51.820029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.820516"], ["id", 1788]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1521"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1521], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1521]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bfAtkiurOVHUf.3.ABKzy.GCocDcT6zRonTGyYj8viQeQaN7nQ8X6"], ["created_at", "2019-12-11 23:24:51.834700"], ["updated_at", "2019-12-11 23:24:51.834700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.836772"], ["updated_at", "2019-12-11 23:24:51.836772"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1522” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.838448"], ["last_sign_in_at", "2019-12-11 23:24:51.838448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.838981"], ["id", 1789]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1522"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1522], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1522]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Crm2mx7xmexNmUJNb.NAY.adTvwDPnUzDTe3zRs33B61rpFZlEkZ6"], ["created_at", "2019-12-11 23:24:51.849860"], ["updated_at", "2019-12-11 23:24:51.849860"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.851990"], ["updated_at", "2019-12-11 23:24:51.851990"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1523” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.853689"], ["last_sign_in_at", "2019-12-11 23:24:51.853689"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.854138"], ["id", 1790]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1523"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9Y.fc7AdzCBITlVs7V1FRe.EL1y9bZYHpb/01T2aOsU5yYekZ5Q0a"], ["created_at", "2019-12-11 23:24:51.863070"], ["updated_at", "2019-12-11 23:24:51.863070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.865199"], ["updated_at", "2019-12-11 23:24:51.865199"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1524” for 127.0.0.1 at 2019-12-11 20:24:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.867024"], ["last_sign_in_at", "2019-12-11 23:24:51.867024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.867496"], ["id", 1791]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1524"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xVU3f3fXd7InN10EpASYLOiRLgm2cjOfdbt3jnxIYqEBWtUlxTTLC"], ["created_at", "2019-12-11 23:26:08.912927"], ["updated_at", "2019-12-11 23:26:08.912927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:08.922040"], ["updated_at", "2019-12-11 23:26:08.922040"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1792], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 173ms (Views: 116.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iTyY/s7eKugFIIHYiCao/u9cvJmUoXf6MrVsUAM9d6fH5/dJZ35OO"], ["created_at", "2019-12-11 23:26:09.106660"], ["updated_at", "2019-12-11 23:26:09.106660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.109225"], ["updated_at", "2019-12-11 23:26:09.109225"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1526], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1793], ["LIMIT", 1]]
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1793], ["room_id", 1526], ["created_at", "2019-12-11 23:26:09.148318"], ["updated_at", "2019-12-11 23:26:09.148318"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kn8jUc00fJV5yKafPAodWeLHnwgth8MOjlWlMbynQTtTeoM9/ow66"], ["created_at", "2019-12-11 23:26:09.191682"], ["updated_at", "2019-12-11 23:26:09.191682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.193865"], ["updated_at", "2019-12-11 23:26:09.193865"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1527], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1794], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1794], ["room_id", 1527], ["created_at", "2019-12-11 23:26:09.199150"], ["updated_at", "2019-12-11 23:26:09.199150"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$5jqZGRITJVBjFNAR5YOjvOSYzYX4SorNi4xkWt/IMN4GWn3AYHWM2"], ["created_at", "2019-12-11 23:26:09.207413"], ["updated_at", "2019-12-11 23:26:09.207413"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.209659"], ["updated_at", "2019-12-11 23:26:09.209659"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1528], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1795], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1795], ["room_id", 1528], ["created_at", "2019-12-11 23:26:09.213986"], ["updated_at", "2019-12-11 23:26:09.213986"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sQmgH9gn88SjKjjOit4tcOkWma2PquLovjXyv6IeeozgOyMjSZ7f2"], ["created_at", "2019-12-11 23:26:09.223683"], ["updated_at", "2019-12-11 23:26:09.223683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.226079"], ["updated_at", "2019-12-11 23:26:09.226079"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1529"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1529], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1529')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Completed 200 OK in 110ms (Views: 76.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$f4jVUfu9hUPmxQvJ1FXI1OBIpMIGxs/VbiWfLQaGFEIEgATuvnAEq"], ["created_at", "2019-12-11 23:26:09.346031"], ["updated_at", "2019-12-11 23:26:09.346031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.348355"], ["updated_at", "2019-12-11 23:26:09.348355"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1530], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1797], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1797], ["room_id", 1530], ["created_at", "2019-12-11 23:26:09.352520"], ["updated_at", "2019-12-11 23:26:09.352520"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1530"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1530], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1530')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.j6OqxU5PRJgUVpMcfDvYOLBmaOaIRlyBXwOxZ7NJgjHvMgAE9meK"], ["created_at", "2019-12-11 23:26:09.366401"], ["updated_at", "2019-12-11 23:26:09.366401"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.368680"], ["updated_at", "2019-12-11 23:26:09.368680"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1531], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1798], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1798], ["room_id", 1531], ["created_at", "2019-12-11 23:26:09.372757"], ["updated_at", "2019-12-11 23:26:09.372757"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1531"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1531], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1531')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$V282E.wjQ9BBEq1LBD/o8.Cum8vb/ehJ5Gn1jCHZK/5.IRVKQBpPa"], ["created_at", "2019-12-11 23:26:09.384787"], ["updated_at", "2019-12-11 23:26:09.384787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.387210"], ["updated_at", "2019-12-11 23:26:09.387210"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1532], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1799], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1799], ["room_id", 1532], ["created_at", "2019-12-11 23:26:09.391272"], ["updated_at", "2019-12-11 23:26:09.391272"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1532"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1532], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1532')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YkBlpYGpCvgnyzt6E.BxTO42AfhAr.8mTF87Uu2x6LqjbURYQjb0a"], ["created_at", "2019-12-11 23:26:09.401508"], ["updated_at", "2019-12-11 23:26:09.401508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.403866"], ["updated_at", "2019-12-11 23:26:09.403866"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1533], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1800], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1800], ["room_id", 1533], ["created_at", "2019-12-11 23:26:09.407701"], ["updated_at", "2019-12-11 23:26:09.407701"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1533"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1533], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1533')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 110ms (Views: 78.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sgnhUa6Rvi/trVuBe9PKI.vEfalqbO6YMTfTure4ToqUlBsJBs1ne"], ["created_at", "2019-12-11 23:26:09.987949"], ["updated_at", "2019-12-11 23:26:09.987949"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.990255"], ["updated_at", "2019-12-11 23:26:09.990255"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.006864"], ["last_sign_in_at", "2019-12-11 23:26:10.006864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.007589"], ["id", 1801]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1534"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1534], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1801], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1801], ["room_id", 1534], ["created_at", "2019-12-11 23:26:10.019950"], ["updated_at", "2019-12-11 23:26:10.019950"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1534], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qmyHNCWa7foQhppHpTxIduTBW3K8KccIsXie00qmWExWoq4BsXiyW"], ["created_at", "2019-12-11 23:26:10.029786"], ["updated_at", "2019-12-11 23:26:10.029786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.031997"], ["updated_at", "2019-12-11 23:26:10.031997"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.034559"], ["last_sign_in_at", "2019-12-11 23:26:10.034559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.035092"], ["id", 1802]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1535"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1535], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1802], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1802], ["room_id", 1535], ["created_at", "2019-12-11 23:26:10.040268"], ["updated_at", "2019-12-11 23:26:10.040268"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$MrIe.sLlR.dOvj7pCB1UmeSlrjuGQgq5trl7d0je9yNrHxgNtRJ6m"], ["created_at", "2019-12-11 23:26:10.049367"], ["updated_at", "2019-12-11 23:26:10.049367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.051695"], ["updated_at", "2019-12-11 23:26:10.051695"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.054140"], ["last_sign_in_at", "2019-12-11 23:26:10.054140"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.054719"], ["id", 1803]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1536"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1536], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/3Jy6YZSSQDE.xuFkuQTMed5.CEtaUz.1FqiusUVgU8G0XyGSp9Kq"], ["created_at", "2019-12-11 23:26:10.064397"], ["updated_at", "2019-12-11 23:26:10.064397"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.066576"], ["updated_at", "2019-12-11 23:26:10.066576"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.068905"], ["last_sign_in_at", "2019-12-11 23:26:10.068905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.069392"], ["id", 1804]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1537"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$RVo0xQYcHH2d1TVntTY6bu19UE1OnZSzOtYK42nJZq6McUg0mfuJi"], ["created_at", "2019-12-11 23:26:10.080513"], ["updated_at", "2019-12-11 23:26:10.080513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.082892"], ["updated_at", "2019-12-11 23:26:10.082892"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1538], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1805], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1805], ["room_id", 1538], ["created_at", "2019-12-11 23:26:10.086753"], ["updated_at", "2019-12-11 23:26:10.086753"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1538” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.089147"], ["last_sign_in_at", "2019-12-11 23:26:10.089147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.089780"], ["id", 1805]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1538"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1538], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1538')[0m
Rendered appointments/show.html.erb within layouts/application (21.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 400ms (Views: 382.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$9mTxs4QOl/BPLDpLnlPW..en2hZbLU4P0jQ7EimK1ftwhmn26yWjm"], ["created_at", "2019-12-11 23:26:10.500859"], ["updated_at", "2019-12-11 23:26:10.500859"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.503065"], ["updated_at", "2019-12-11 23:26:10.503065"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1539], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1806], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1806], ["room_id", 1539], ["created_at", "2019-12-11 23:26:10.507378"], ["updated_at", "2019-12-11 23:26:10.507378"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1539], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1806], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1806], ["room_id", 1539], ["created_at", "2019-12-11 23:26:10.511823"], ["updated_at", "2019-12-11 23:26:10.511823"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.514583"], ["last_sign_in_at", "2019-12-11 23:26:10.514583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.515120"], ["id", 1806]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1806]] Rendered appointments/my_appointments.html.erb within layouts/application (20.8ms)
Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$JlsWAzxAZndh46HjN2yrlu8FJp3c58luLWlGNZYeXNYY95WjxlvEO"], ["created_at", "2019-12-11 23:26:10.561757"], ["updated_at", "2019-12-11 23:26:10.561757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.564006"], ["updated_at", "2019-12-11 23:26:10.564006"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1540], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1807], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1807], ["room_id", 1540], ["created_at", "2019-12-11 23:26:10.568079"], ["updated_at", "2019-12-11 23:26:10.568079"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1540], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1807], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1807], ["room_id", 1540], ["created_at", "2019-12-11 23:26:10.571998"], ["updated_at", "2019-12-11 23:26:10.571998"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.574461"], ["last_sign_in_at", "2019-12-11 23:26:10.574461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.574970"], ["id", 1807]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1807]] Rendered appointments/my_appointments.html.erb within layouts/application (18.4ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3merd9T/VJeCiADPps8z3uklksZFEo.7SLvW5EkoulasRq/viAK/O"], ["created_at", "2019-12-11 23:26:10.603558"], ["updated_at", "2019-12-11 23:26:10.603558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.605753"], ["updated_at", "2019-12-11 23:26:10.605753"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1541], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1808], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1808], ["room_id", 1541], ["created_at", "2019-12-11 23:26:10.609601"], ["updated_at", "2019-12-11 23:26:10.609601"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/844” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.612465"], ["last_sign_in_at", "2019-12-11 23:26:10.612465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.613005"], ["id", 1808]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"844"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 844], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 844]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SqjRlzKqnsehvlvrEDMMTeT20VIF1VyNFcVyBVxFOSGkU9e/9.DVO"], ["created_at", "2019-12-11 23:26:10.627174"], ["updated_at", "2019-12-11 23:26:10.627174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.629812"], ["last_sign_in_at", "2019-12-11 23:26:10.629812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.630391"], ["id", 1809]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 36ms (Views: 19.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Svy.lFbZFXAh9cwtSXfCKOby7789rJ0rR0gjgyUvAEAbikpdtTENS"], ["created_at", "2019-12-11 23:26:10.675910"], ["updated_at", "2019-12-11 23:26:10.675910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.678419"], ["updated_at", "2019-12-11 23:26:10.678419"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1542], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1810], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1810], ["room_id", 1542], ["created_at", "2019-12-11 23:26:10.682307"], ["updated_at", "2019-12-11 23:26:10.682307"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1542], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1810], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1810], ["room_id", 1542], ["created_at", "2019-12-11 23:26:10.686200"], ["updated_at", "2019-12-11 23:26:10.686200"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.688597"], ["last_sign_in_at", "2019-12-11 23:26:10.688597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.689236"], ["id", 1810]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1542], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1810], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1810], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xPFmdZL8cKDt29EWgHW/GOr6xCadzlHFnOcqX23Q5CU.HX340L356"], ["created_at", "2019-12-11 23:26:10.703081"], ["updated_at", "2019-12-11 23:26:10.703081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.705341"], ["updated_at", "2019-12-11 23:26:10.705341"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1543], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1811], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1811], ["room_id", 1543], ["created_at", "2019-12-11 23:26:10.709519"], ["updated_at", "2019-12-11 23:26:10.709519"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1543], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1811], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1811], ["room_id", 1543], ["created_at", "2019-12-11 23:26:10.714116"], ["updated_at", "2019-12-11 23:26:10.714116"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.716803"], ["last_sign_in_at", "2019-12-11 23:26:10.716803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.717513"], ["id", 1811]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1543], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1811], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1811], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZAruNy0X9j2R31k3T.A/T.h.o8q..QwGl30SeSIbdspSINSqOkO4C"], ["created_at", "2019-12-11 23:26:10.733172"], ["updated_at", "2019-12-11 23:26:10.733172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.735405"], ["updated_at", "2019-12-11 23:26:10.735405"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1544], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1812], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1812], ["room_id", 1544], ["created_at", "2019-12-11 23:26:10.739301"], ["updated_at", "2019-12-11 23:26:10.739301"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1544], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1812], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1812], ["room_id", 1544], ["created_at", "2019-12-11 23:26:10.743235"], ["updated_at", "2019-12-11 23:26:10.743235"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.745867"], ["last_sign_in_at", "2019-12-11 23:26:10.745867"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.746455"], ["id", 1812]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KUzfNcWgDAsGpRC8M/PMgO5InwtMMFPRYqCM/rEym78n9Gj7qg5iO"], ["created_at", "2019-12-11 23:26:10.757583"], ["updated_at", "2019-12-11 23:26:10.757583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.759659"], ["updated_at", "2019-12-11 23:26:10.759659"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1545], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1813], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1813], ["room_id", 1545], ["created_at", "2019-12-11 23:26:10.763967"], ["updated_at", "2019-12-11 23:26:10.763967"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1545], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1813], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1813], ["room_id", 1545], ["created_at", "2019-12-11 23:26:10.767741"], ["updated_at", "2019-12-11 23:26:10.767741"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.769994"], ["last_sign_in_at", "2019-12-11 23:26:10.769994"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.770526"], ["id", 1813]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$enJ2igxGWfsfMdTSLKQ3P.4fPzKg3doJ90HRpBdiippGievCi6Uay"], ["created_at", "2019-12-11 23:26:10.784671"], ["updated_at", "2019-12-11 23:26:10.784671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.787373"], ["last_sign_in_at", "2019-12-11 23:26:10.787373"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.788028"], ["id", 1814]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 48.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E7Qbt3ZQULUdBzg4a76yYeeF11lW.N5wXgNiFkghfq6tAyclLLez6"], ["created_at", "2019-12-11 23:26:10.863658"], ["updated_at", "2019-12-11 23:26:10.863658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.865853"], ["last_sign_in_at", "2019-12-11 23:26:10.865853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.866367"], ["id", 1815]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6q4HjRY65LqaizgJed9RseACyo0vXEs/ip77MfEKDm/w7KpKw.rrm"], ["created_at", "2019-12-11 23:26:10.876596"], ["updated_at", "2019-12-11 23:26:10.876596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.879723"], ["last_sign_in_at", "2019-12-11 23:26:10.879723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.880289"], ["id", 1816]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YHP7KtjvLrMhjHSGzDuOSOmLFhAq.XLmCX.8ibxkbFLki0XqEHIPe"], ["created_at", "2019-12-11 23:26:10.908918"], ["updated_at", "2019-12-11 23:26:10.908918"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.911518"], ["last_sign_in_at", "2019-12-11 23:26:10.911518"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.912038"], ["id", 1817]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:26:10 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cy06Pt4JDJfrhytCyqYmQe/MRotFLaCgLqSngAaJfUTSMQqCWSpM."], ["created_at", "2019-12-11 23:26:10.932242"], ["updated_at", "2019-12-11 23:26:10.932242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.934582"], ["updated_at", "2019-12-11 23:26:10.934582"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1546” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.936609"], ["last_sign_in_at", "2019-12-11 23:26:10.936609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.937114"], ["id", 1818]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1546"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1546], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6TuFpbHYhwADQRKdBen1R.2Kpoa7dwzWHsyj/hj2IlOIg2bLdpeIW"], ["created_at", "2019-12-11 23:26:10.965592"], ["updated_at", "2019-12-11 23:26:10.965592"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.968065"], ["updated_at", "2019-12-11 23:26:10.968065"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1547” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.971129"], ["last_sign_in_at", "2019-12-11 23:26:10.971129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.971824"], ["id", 1819]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1547"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1547], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (1.0ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.983059"], ["updated_at", "2019-12-11 23:26:10.983059"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1548” for 127.0.0.1 at 2019-12-11 20:26:10 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1548"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lUzeCx6Gbq46TlWDZxGo4O/CYmqOe2OACV5WPBbR0fpNWMCwPc8Fu"], ["created_at", "2019-12-11 23:26:10.994691"], ["updated_at", "2019-12-11 23:26:10.994691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.997369"], ["updated_at", "2019-12-11 23:26:10.997369"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1549/edit” for 127.0.0.1 at 2019-12-11 20:26:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.999632"], ["last_sign_in_at", "2019-12-11 23:26:10.999632"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.000288"], ["id", 1820]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1549"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1549], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qQYpqGdPvx3Gfv77bUa/qudQt9XAeqrjHeLGX/zq4JKmdM0kDcqUa"], ["created_at", "2019-12-11 23:26:11.031320"], ["updated_at", "2019-12-11 23:26:11.031320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.034260"], ["updated_at", "2019-12-11 23:26:11.034260"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1550/edit” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.036506"], ["last_sign_in_at", "2019-12-11 23:26:11.036506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.036989"], ["id", 1821]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1550"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1550], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.047358"], ["updated_at", "2019-12-11 23:26:11.047358"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1551” for 127.0.0.1 at 2019-12-11 20:26:11 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1551"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZIOC/NY2pFBnC9ltd.DPw.DqhbbGwsD.psT9K.lKMP9PmqpVMCHam"], ["created_at", "2019-12-11 23:26:11.058795"], ["updated_at", "2019-12-11 23:26:11.058795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.069207"], ["last_sign_in_at", "2019-12-11 23:26:11.069207"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.069776"], ["id", 1822]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.074677"], ["updated_at", "2019-12-11 23:26:11.074677"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EDTEzvN4OrUZZoOYG9IHDe/MLgceFn/yzuWktSIh/norTpgnw0u6y"], ["created_at", "2019-12-11 23:26:11.082874"], ["updated_at", "2019-12-11 23:26:11.082874"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.085304"], ["last_sign_in_at", "2019-12-11 23:26:11.085304"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.085709"], ["id", 1823]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.088924"], ["updated_at", "2019-12-11 23:26:11.088924"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xj8rkqSRbwT7ecWIBBTEWecGuZSyXE/eW7EySNPx8dX/HEOIoqLgq"], ["created_at", "2019-12-11 23:26:11.096967"], ["updated_at", "2019-12-11 23:26:11.096967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.099552"], ["last_sign_in_at", "2019-12-11 23:26:11.099552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.100001"], ["id", 1824]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JO9IMl6rLWhv6K2itZs0ye81/DV8ECPj4c.cL7WUL6QPIPgnY152O"], ["created_at", "2019-12-11 23:26:11.109586"], ["updated_at", "2019-12-11 23:26:11.109586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.112495"], ["last_sign_in_at", "2019-12-11 23:26:11.112495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.113025"], ["id", 1825]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f67T4BtzriiEfZZXETVBmuWBU5lAQ/Pq3Do9UruOmG6O/bp9uaFqS"], ["created_at", "2019-12-11 23:26:11.123173"], ["updated_at", "2019-12-11 23:26:11.123173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.125933"], ["last_sign_in_at", "2019-12-11 23:26:11.125933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.126461"], ["id", 1826]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lIq35SRTJdv06xOXWjl/OOQVkWBpRRERm7hVA.khF/.astg7IYJXC"], ["created_at", "2019-12-11 23:26:11.136813"], ["updated_at", "2019-12-11 23:26:11.136813"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.138860"], ["updated_at", "2019-12-11 23:26:11.138860"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1554” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.140991"], ["last_sign_in_at", "2019-12-11 23:26:11.140991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.141537"], ["id", 1827]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1554"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1554], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:26:11.145596"], ["id", 1554]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1554 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YgyMZ3pXwrNBRM4ddElAbOc.M27yWRLgDigYWBxJHONHG9IPv9MOu"], ["created_at", "2019-12-11 23:26:11.153356"], ["updated_at", "2019-12-11 23:26:11.153356"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.155497"], ["updated_at", "2019-12-11 23:26:11.155497"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1555” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.157657"], ["last_sign_in_at", "2019-12-11 23:26:11.157657"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.158161"], ["id", 1828]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1555"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1555], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:26:11.162406"], ["id", 1555]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1555 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pTPnq6cRRyI.ZQ7J0FHvOeOJtASEdABvmxnMQ5lVNW0doduPOgPX6"], ["created_at", "2019-12-11 23:26:11.170876"], ["updated_at", "2019-12-11 23:26:11.170876"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.172903"], ["updated_at", "2019-12-11 23:26:11.172903"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1556” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.175122"], ["last_sign_in_at", "2019-12-11 23:26:11.175122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.175646"], ["id", 1829]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1556"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1556], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5yFZlCl1C1qKgcQ.yM1RLehn1GpiYaXKpgFk3XS641oagcPUUzjTi"], ["created_at", "2019-12-11 23:26:11.190320"], ["updated_at", "2019-12-11 23:26:11.190320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.192586"], ["updated_at", "2019-12-11 23:26:11.192586"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1557” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.195412"], ["last_sign_in_at", "2019-12-11 23:26:11.195412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.196010"], ["id", 1830]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1557"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1557], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zI7w2ZsCh9AVxnQOn3C5g.U76gs8hO.Eiljysof6avBP9vcCS5awq"], ["created_at", "2019-12-11 23:26:11.210339"], ["updated_at", "2019-12-11 23:26:11.210339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.213393"], ["last_sign_in_at", "2019-12-11 23:26:11.213393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.214047"], ["id", 1831]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZF9h5z0nvCQ3K0zhrVVXOulCxErSI5GzW4Ovq8XCY6yswo0tcf8xC"], ["created_at", "2019-12-11 23:26:11.224137"], ["updated_at", "2019-12-11 23:26:11.224137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.226325"], ["updated_at", "2019-12-11 23:26:11.226325"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1558” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.228543"], ["last_sign_in_at", "2019-12-11 23:26:11.228543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.229107"], ["id", 1832]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1558"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1558], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1558]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bWEbxO6QqbilzkwGm0iKbe6tcQBKFUBaRp3UxbxFjwNgkk3f85ITG"], ["created_at", "2019-12-11 23:26:11.240252"], ["updated_at", "2019-12-11 23:26:11.240252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.242415"], ["updated_at", "2019-12-11 23:26:11.242415"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1559” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.244347"], ["last_sign_in_at", "2019-12-11 23:26:11.244347"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.245307"], ["id", 1833]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1559"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1559], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1559]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bn8s6JwxvInRCSORZRceFe6o7eud.PXLV7qd73A8PiOHDGauNaOxy"], ["created_at", "2019-12-11 23:26:11.257018"], ["updated_at", "2019-12-11 23:26:11.257018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.259240"], ["updated_at", "2019-12-11 23:26:11.259240"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1560” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.261495"], ["last_sign_in_at", "2019-12-11 23:26:11.261495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.262113"], ["id", 1834]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1560"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uihAktDsSybcTwnXk7m/RuOxd3ampxiydudNP8ehujm2NgQXlAj7S"], ["created_at", "2019-12-11 23:26:11.271231"], ["updated_at", "2019-12-11 23:26:11.271231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.273354"], ["updated_at", "2019-12-11 23:26:11.273354"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1561” for 127.0.0.1 at 2019-12-11 20:26:11 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.275173"], ["last_sign_in_at", "2019-12-11 23:26:11.275173"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.275651"], ["id", 1835]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1561"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$zoTm8fwXbyPxGWy63DB2feKTh3brf1RHY/prjSXxL.nFralyEUv62"], ["created_at", "2019-12-11 23:30:08.205702"], ["updated_at", "2019-12-11 23:30:08.205702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.214954"], ["updated_at", "2019-12-11 23:30:08.214954"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1836], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.4ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 174ms (Views: 116.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$W44iaA3zxIeKDE/uC5gI5.wGEOjrKGy/L.AnKfB/pQJDPUXWsubmu"], ["created_at", "2019-12-11 23:30:08.399363"], ["updated_at", "2019-12-11 23:30:08.399363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.401752"], ["updated_at", "2019-12-11 23:30:08.401752"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1563], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1837], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1837], ["room_id", 1563], ["created_at", "2019-12-11 23:30:08.440870"], ["updated_at", "2019-12-11 23:30:08.440870"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qRdMkLuMpp8uYkdUUqMg/.VhxeK07tRfNemaHgEyaYuUpssTheEIK"], ["created_at", "2019-12-11 23:30:08.482575"], ["updated_at", "2019-12-11 23:30:08.482575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.484790"], ["updated_at", "2019-12-11 23:30:08.484790"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1564], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1838], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1838], ["room_id", 1564], ["created_at", "2019-12-11 23:30:08.489360"], ["updated_at", "2019-12-11 23:30:08.489360"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YcpbD.15rLVcDvNtiGh8iOAO9pWTFMmGwBoGb6DksHdAueOqBooeW"], ["created_at", "2019-12-11 23:30:08.498632"], ["updated_at", "2019-12-11 23:30:08.498632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.501113"], ["updated_at", "2019-12-11 23:30:08.501113"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1565], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1839], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1839], ["room_id", 1565], ["created_at", "2019-12-11 23:30:08.505911"], ["updated_at", "2019-12-11 23:30:08.505911"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.h08Ggp2K.uU8wmQpnbgOOtxBsQTSwmSh9bQ8VgXrQv/XZwXeuTMi"], ["created_at", "2019-12-11 23:30:08.521981"], ["updated_at", "2019-12-11 23:30:08.521981"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.524511"], ["updated_at", "2019-12-11 23:30:08.524511"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1566"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1566], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1566')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Completed 200 OK in 108ms (Views: 75.1ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yEcM2NvvBl/tiCqsrhE9leTZXmbepgQ/xvvfuYwwtAesbV7zQ2glO"], ["created_at", "2019-12-11 23:30:08.642262"], ["updated_at", "2019-12-11 23:30:08.642262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.644513"], ["updated_at", "2019-12-11 23:30:08.644513"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1567], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1841], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1841], ["room_id", 1567], ["created_at", "2019-12-11 23:30:08.648433"], ["updated_at", "2019-12-11 23:30:08.648433"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1567"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1567], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1567')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SGuAKNRwFLEpqzm02.62tO9psktHAAwgRvSbN1.ZlSFeTxRWNSuiC"], ["created_at", "2019-12-11 23:30:08.659095"], ["updated_at", "2019-12-11 23:30:08.659095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.661354"], ["updated_at", "2019-12-11 23:30:08.661354"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1568], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1842], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1842], ["room_id", 1568], ["created_at", "2019-12-11 23:30:08.665153"], ["updated_at", "2019-12-11 23:30:08.665153"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1568"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1568], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1568')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$FovHrdAipcC5H1vjXr/tI.7O2/2iQ850C6KnSupyVfdmOJKoWeAlW"], ["created_at", "2019-12-11 23:30:08.676846"], ["updated_at", "2019-12-11 23:30:08.676846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.679049"], ["updated_at", "2019-12-11 23:30:08.679049"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1569], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1843], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1843], ["room_id", 1569], ["created_at", "2019-12-11 23:30:08.682844"], ["updated_at", "2019-12-11 23:30:08.682844"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1569"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1569], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1569')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qq2AVL9cw8v3lPYUNxNet.lWs.nAXEf38STUsCFX83YkY7Upl5/Be"], ["created_at", "2019-12-11 23:30:08.693801"], ["updated_at", "2019-12-11 23:30:08.693801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.695982"], ["updated_at", "2019-12-11 23:30:08.695982"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1570], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1844], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1844], ["room_id", 1570], ["created_at", "2019-12-11 23:30:08.699712"], ["updated_at", "2019-12-11 23:30:08.699712"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1570"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1570], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1570')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 109ms (Views: 77.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sG1KGyTXKYldxaNo/tok2.EHMqwePFUs/xFARKl8zntdMkCyufeLC"], ["created_at", "2019-12-11 23:30:09.282966"], ["updated_at", "2019-12-11 23:30:09.282966"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.285384"], ["updated_at", "2019-12-11 23:30:09.285384"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.306415"], ["last_sign_in_at", "2019-12-11 23:30:09.306415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.307076"], ["id", 1845]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1571"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1571], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1845], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1845], ["room_id", 1571], ["created_at", "2019-12-11 23:30:09.315312"], ["updated_at", "2019-12-11 23:30:09.315312"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1571], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7/8RiLTrgkVgUM3nNHVFROGxceBTvVv25BjUW0tyNHuUcuU/tpM2W"], ["created_at", "2019-12-11 23:30:09.324888"], ["updated_at", "2019-12-11 23:30:09.324888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.327107"], ["updated_at", "2019-12-11 23:30:09.327107"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.329491"], ["last_sign_in_at", "2019-12-11 23:30:09.329491"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.330094"], ["id", 1846]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1572"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1572], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1846], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1846], ["room_id", 1572], ["created_at", "2019-12-11 23:30:09.335213"], ["updated_at", "2019-12-11 23:30:09.335213"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fZRFgCiobcaTADXsIJhrCOyqWnPkNzdI2XKlJ1QtkFkm.tqoZyOBK"], ["created_at", "2019-12-11 23:30:09.344097"], ["updated_at", "2019-12-11 23:30:09.344097"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.346520"], ["updated_at", "2019-12-11 23:30:09.346520"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.349072"], ["last_sign_in_at", "2019-12-11 23:30:09.349072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.349597"], ["id", 1847]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1573"}
Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1573], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$imf96KO/Mns5fwyDrOizgONw4hGhxwvMXVbONgkMTIOKTPojX2.we"], ["created_at", "2019-12-11 23:30:09.360325"], ["updated_at", "2019-12-11 23:30:09.360325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.362693"], ["updated_at", "2019-12-11 23:30:09.362693"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.365052"], ["last_sign_in_at", "2019-12-11 23:30:09.365052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.365599"], ["id", 1848]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1574"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3VU3xviW0TtI.0PAjgLmgeAtI7GVzAGcWJCToK6HO8QhE03u.v/tC"], ["created_at", "2019-12-11 23:30:09.376367"], ["updated_at", "2019-12-11 23:30:09.376367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.378637"], ["updated_at", "2019-12-11 23:30:09.378637"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1575], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1849], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1849], ["room_id", 1575], ["created_at", "2019-12-11 23:30:09.382288"], ["updated_at", "2019-12-11 23:30:09.382288"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1575” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.384657"], ["last_sign_in_at", "2019-12-11 23:30:09.384657"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.385141"], ["id", 1849]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1575"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1575], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1575')[0m
Rendered appointments/show.html.erb within layouts/application (21.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 400ms (Views: 382.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$G2FFcNhmE9whSt7Ih0awK.hZOEEXMfXfRTjIeLkZNm6GmNPUibZaK"], ["created_at", "2019-12-11 23:30:09.796259"], ["updated_at", "2019-12-11 23:30:09.796259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.798524"], ["updated_at", "2019-12-11 23:30:09.798524"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1576], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1850], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1850], ["room_id", 1576], ["created_at", "2019-12-11 23:30:09.802361"], ["updated_at", "2019-12-11 23:30:09.802361"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1576], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1850], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1850], ["room_id", 1576], ["created_at", "2019-12-11 23:30:09.807265"], ["updated_at", "2019-12-11 23:30:09.807265"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.809711"], ["last_sign_in_at", "2019-12-11 23:30:09.809711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.810266"], ["id", 1850]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1850]] Rendered appointments/my_appointments.html.erb within layouts/application (20.6ms)
Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kQE8rK4iSFLeDH/jZPMVVufjopraBx1HVR4IshRV2avZRUz0rcPSa"], ["created_at", "2019-12-11 23:30:09.857038"], ["updated_at", "2019-12-11 23:30:09.857038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.859327"], ["updated_at", "2019-12-11 23:30:09.859327"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1577], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1851], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1851], ["room_id", 1577], ["created_at", "2019-12-11 23:30:09.863134"], ["updated_at", "2019-12-11 23:30:09.863134"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1577], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1851], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1851], ["room_id", 1577], ["created_at", "2019-12-11 23:30:09.867079"], ["updated_at", "2019-12-11 23:30:09.867079"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.869604"], ["last_sign_in_at", "2019-12-11 23:30:09.869604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.870210"], ["id", 1851]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1851]] Rendered appointments/my_appointments.html.erb within layouts/application (17.1ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dslzDGZZLD7.nGOpLTo02.Z83M.8iADI3mHnGyJ.FC6xsjd.8qMO6"], ["created_at", "2019-12-11 23:30:09.897018"], ["updated_at", "2019-12-11 23:30:09.897018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.899353"], ["updated_at", "2019-12-11 23:30:09.899353"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1578], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1852], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1852], ["room_id", 1578], ["created_at", "2019-12-11 23:30:09.903920"], ["updated_at", "2019-12-11 23:30:09.903920"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/867” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.906379"], ["last_sign_in_at", "2019-12-11 23:30:09.906379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.906873"], ["id", 1852]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"867"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 867], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 867]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3oc2O3Lb7g98ZDYyOLdW1ekKIX6lIKjWxdpIMFEVCjBvSmLuhvVYW"], ["created_at", "2019-12-11 23:30:09.920909"], ["updated_at", "2019-12-11 23:30:09.920909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.923129"], ["last_sign_in_at", "2019-12-11 23:30:09.923129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.923676"], ["id", 1853]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 36ms (Views: 18.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9viLYFq7YjChdh.Npx39s.A185EDgFUWxVyoeUTy.9CFAUUBcEPym"], ["created_at", "2019-12-11 23:30:09.968476"], ["updated_at", "2019-12-11 23:30:09.968476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.971153"], ["updated_at", "2019-12-11 23:30:09.971153"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1579], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1854], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1854], ["room_id", 1579], ["created_at", "2019-12-11 23:30:09.975082"], ["updated_at", "2019-12-11 23:30:09.975082"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1579], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1854], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1854], ["room_id", 1579], ["created_at", "2019-12-11 23:30:09.979025"], ["updated_at", "2019-12-11 23:30:09.979025"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.981409"], ["last_sign_in_at", "2019-12-11 23:30:09.981409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.981920"], ["id", 1854]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1579], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1854], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1854], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q04oMDtMemdSkcuuQmMxUuJs14RjDbdmbVg0TtOHtRhvfesSMdlui"], ["created_at", "2019-12-11 23:30:09.995933"], ["updated_at", "2019-12-11 23:30:09.995933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.998223"], ["updated_at", "2019-12-11 23:30:09.998223"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1580], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1855], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1855], ["room_id", 1580], ["created_at", "2019-12-11 23:30:10.002443"], ["updated_at", "2019-12-11 23:30:10.002443"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1580], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1855], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1855], ["room_id", 1580], ["created_at", "2019-12-11 23:30:10.006966"], ["updated_at", "2019-12-11 23:30:10.006966"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.009425"], ["last_sign_in_at", "2019-12-11 23:30:10.009425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.009915"], ["id", 1855]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1580], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1855], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1855], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BrQghdFsZkuiMSkmhr5Ylexr2KwbLLYgB7B8/X/qD5kEeUgeseb/G"], ["created_at", "2019-12-11 23:30:10.024647"], ["updated_at", "2019-12-11 23:30:10.024647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.026890"], ["updated_at", "2019-12-11 23:30:10.026890"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1581], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1856], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1856], ["room_id", 1581], ["created_at", "2019-12-11 23:30:10.030750"], ["updated_at", "2019-12-11 23:30:10.030750"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1581], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1856], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1856], ["room_id", 1581], ["created_at", "2019-12-11 23:30:10.034597"], ["updated_at", "2019-12-11 23:30:10.034597"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.037291"], ["last_sign_in_at", "2019-12-11 23:30:10.037291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.037836"], ["id", 1856]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UmKsMekaZ2yrZLkBHbpteeqNB9mKGdCPJxmtMElr4x8MwzAzLY3NS"], ["created_at", "2019-12-11 23:30:10.048606"], ["updated_at", "2019-12-11 23:30:10.048606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.050805"], ["updated_at", "2019-12-11 23:30:10.050805"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1582], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1857], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1857], ["room_id", 1582], ["created_at", "2019-12-11 23:30:10.055215"], ["updated_at", "2019-12-11 23:30:10.055215"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1582], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1857], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1857], ["room_id", 1582], ["created_at", "2019-12-11 23:30:10.059274"], ["updated_at", "2019-12-11 23:30:10.059274"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.061700"], ["last_sign_in_at", "2019-12-11 23:30:10.061700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.062206"], ["id", 1857]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VlCLxfv/OrSDi2ClSI4.uulf3g4qiy0T14WU/SJAGDeQTSW9CfkWa"], ["created_at", "2019-12-11 23:30:10.076609"], ["updated_at", "2019-12-11 23:30:10.076609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.078969"], ["last_sign_in_at", "2019-12-11 23:30:10.078969"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.079496"], ["id", 1858]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 65ms (Views: 48.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RWWPAT/klnObs2twjPM5uO8neB4ctBnzGa5iZwPD3m5ySkm3Tfk8G"], ["created_at", "2019-12-11 23:30:10.156690"], ["updated_at", "2019-12-11 23:30:10.156690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.158903"], ["last_sign_in_at", "2019-12-11 23:30:10.158903"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.159390"], ["id", 1859]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$smnZ/XYSnRrm8AO/B8RmX.8Y13nEtVufRERZ.B80psMRsWnd9WBVS"], ["created_at", "2019-12-11 23:30:10.170129"], ["updated_at", "2019-12-11 23:30:10.170129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.172759"], ["last_sign_in_at", "2019-12-11 23:30:10.172759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.173294"], ["id", 1860]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DcUwZCBXB2X9aQFcYH3TxetLXZHvbOlQUi2EqbJPXNi1Y.LvjApC6"], ["created_at", "2019-12-11 23:30:10.201590"], ["updated_at", "2019-12-11 23:30:10.201590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.204379"], ["last_sign_in_at", "2019-12-11 23:30:10.204379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.204866"], ["id", 1861]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bYqQYMnm2guDWZvGf9KTm.sdogqwrk/UneJM.LA27mis8uzHs10ma"], ["created_at", "2019-12-11 23:30:10.224015"], ["updated_at", "2019-12-11 23:30:10.224015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.226771"], ["updated_at", "2019-12-11 23:30:10.226771"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1583” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.228951"], ["last_sign_in_at", "2019-12-11 23:30:10.228951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.229498"], ["id", 1862]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1583"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1583], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8YRqKFl6D8zGf3HYIIfXG.zOmxU6S36MlSjwtHCe2pHWn4.5nLHGq"], ["created_at", "2019-12-11 23:30:10.257947"], ["updated_at", "2019-12-11 23:30:10.257947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.260365"], ["updated_at", "2019-12-11 23:30:10.260365"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1584” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.262669"], ["last_sign_in_at", "2019-12-11 23:30:10.262669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.263190"], ["id", 1863]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1584"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1584], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.273358"], ["updated_at", "2019-12-11 23:30:10.273358"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1585” for 127.0.0.1 at 2019-12-11 20:30:10 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1585"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DIoMx2bvj7u3NXzWYbceAeqVhgfjVD5/YNVSHAUGHkWfcWjwr7PkK"], ["created_at", "2019-12-11 23:30:10.283440"], ["updated_at", "2019-12-11 23:30:10.283440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.285821"], ["updated_at", "2019-12-11 23:30:10.285821"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1586/edit” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.288337"], ["last_sign_in_at", "2019-12-11 23:30:10.288337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.288881"], ["id", 1864]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1586"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1586], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iV0/Nh6DXzpcSh4uiCuY2uQZ3MNPeFLCNin767Msq7mZlxYni.Clu"], ["created_at", "2019-12-11 23:30:10.318087"], ["updated_at", "2019-12-11 23:30:10.318087"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.320660"], ["updated_at", "2019-12-11 23:30:10.320660"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1587/edit” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.322961"], ["last_sign_in_at", "2019-12-11 23:30:10.322961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.323512"], ["id", 1865]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1587"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1587], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.334576"], ["updated_at", "2019-12-11 23:30:10.334576"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1588” for 127.0.0.1 at 2019-12-11 20:30:10 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1588"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jkpWgwkPOxG1FJbPiZN0p.jf/nHtcg.uVfAQf7jPRR2Uuw6ImuglG"], ["created_at", "2019-12-11 23:30:10.354493"], ["updated_at", "2019-12-11 23:30:10.354493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.357464"], ["last_sign_in_at", "2019-12-11 23:30:10.357464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.357941"], ["id", 1866]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.361139"], ["updated_at", "2019-12-11 23:30:10.361139"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e7CgDGfaR1n37n24mTnQ8eJmJiMaR3c4tqzbS8CL90./5vJgi122y"], ["created_at", "2019-12-11 23:30:10.369838"], ["updated_at", "2019-12-11 23:30:10.369838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.372568"], ["last_sign_in_at", "2019-12-11 23:30:10.372568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.373050"], ["id", 1867]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.376474"], ["updated_at", "2019-12-11 23:30:10.376474"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gfP/kBA.2GtEwEy/rPaQVe/3z1CclNFVAjV.UHIjHNwuzBrk.EsPS"], ["created_at", "2019-12-11 23:30:10.385011"], ["updated_at", "2019-12-11 23:30:10.385011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.387885"], ["last_sign_in_at", "2019-12-11 23:30:10.387885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.388434"], ["id", 1868]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mbLOsA.DQ5pcVl4YBTWWxOX8wmJje6Do.uh6jcSPcKuLGNkxLTeHm"], ["created_at", "2019-12-11 23:30:10.398839"], ["updated_at", "2019-12-11 23:30:10.398839"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.401324"], ["last_sign_in_at", "2019-12-11 23:30:10.401324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.401812"], ["id", 1869]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VA5zdU1ZZ5YNntyZdkVQv.gxpsrmCeE6.obtBvrA.xaqat5zdPwHS"], ["created_at", "2019-12-11 23:30:10.413540"], ["updated_at", "2019-12-11 23:30:10.413540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.416172"], ["last_sign_in_at", "2019-12-11 23:30:10.416172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.416726"], ["id", 1870]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DLZvPj70wQdhFtaH22arjucOQIzy75R7xXNlvImqT4FWqfJ5R0XGi"], ["created_at", "2019-12-11 23:30:10.427613"], ["updated_at", "2019-12-11 23:30:10.427613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.429813"], ["updated_at", "2019-12-11 23:30:10.429813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1591” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.432225"], ["last_sign_in_at", "2019-12-11 23:30:10.432225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.432771"], ["id", 1871]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1591"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1591], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:30:10.437096"], ["id", 1591]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1591 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YPE.U1VBqnhNrDkgKxHa8emnk4HnmFEacC2.0osZzjHImRl2pD0sG"], ["created_at", "2019-12-11 23:30:10.445497"], ["updated_at", "2019-12-11 23:30:10.445497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.447724"], ["updated_at", "2019-12-11 23:30:10.447724"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1592” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.450075"], ["last_sign_in_at", "2019-12-11 23:30:10.450075"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.450630"], ["id", 1872]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1592"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1592], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:30:10.455013"], ["id", 1592]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1592 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QUNuTioF6I1YvDDh3.RLx.1dVQLaYZ.KFyo4lShqAc565wRROYMOe"], ["created_at", "2019-12-11 23:30:10.463635"], ["updated_at", "2019-12-11 23:30:10.463635"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.465938"], ["updated_at", "2019-12-11 23:30:10.465938"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1593” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.468285"], ["last_sign_in_at", "2019-12-11 23:30:10.468285"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.469036"], ["id", 1873]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1593"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1593], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$imfRU8KUZuSEpK6zZ2Fs5u6IofgeXiCGGc0yMzTA/H4y05AKUhx2u"], ["created_at", "2019-12-11 23:30:10.483363"], ["updated_at", "2019-12-11 23:30:10.483363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.485819"], ["updated_at", "2019-12-11 23:30:10.485819"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1594” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.488517"], ["last_sign_in_at", "2019-12-11 23:30:10.488517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.489156"], ["id", 1874]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1594"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1594], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ykeNwFpAWj.ezcYlzpsjQOJvTH23RAKZmUZqWGQzjVFx/LQJ7TV12"], ["created_at", "2019-12-11 23:30:10.504024"], ["updated_at", "2019-12-11 23:30:10.504024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.506769"], ["last_sign_in_at", "2019-12-11 23:30:10.506769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.507250"], ["id", 1875]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$48RFGA4MN1C72IXLJC3TVucSG41dtw4uFHXOJBtYyF66ffPBLxWdS"], ["created_at", "2019-12-11 23:30:10.518168"], ["updated_at", "2019-12-11 23:30:10.518168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.520677"], ["updated_at", "2019-12-11 23:30:10.520677"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1595” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.522596"], ["last_sign_in_at", "2019-12-11 23:30:10.522596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.523092"], ["id", 1876]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1595"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1595], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1595]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lw75ubANSfu.YLUVvWkUe.UMbq4x2uJwTxJMIERRXgdlGTzDHAvJu"], ["created_at", "2019-12-11 23:30:10.533935"], ["updated_at", "2019-12-11 23:30:10.533935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.536556"], ["updated_at", "2019-12-11 23:30:10.536556"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1596” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.538649"], ["last_sign_in_at", "2019-12-11 23:30:10.538649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.539231"], ["id", 1877]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1596"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1596], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1596]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aFIgvSv7uIpQiXT3Z.fQFueBJe8sVVr5GgDFsUXG1.6UZLoqiAldW"], ["created_at", "2019-12-11 23:30:10.550530"], ["updated_at", "2019-12-11 23:30:10.550530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.553157"], ["updated_at", "2019-12-11 23:30:10.553157"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1597” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.555297"], ["last_sign_in_at", "2019-12-11 23:30:10.555297"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.555786"], ["id", 1878]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1597"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h8Pbpwef1GnaWH46H7GRRuh8EWcNWptB/iFnOlk3A7RlqTBO0Q3fC"], ["created_at", "2019-12-11 23:30:10.564885"], ["updated_at", "2019-12-11 23:30:10.564885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.566917"], ["updated_at", "2019-12-11 23:30:10.566917"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1598” for 127.0.0.1 at 2019-12-11 20:30:10 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.568665"], ["last_sign_in_at", "2019-12-11 23:30:10.568665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.569518"], ["id", 1879]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1598"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hI6x.ys1lRzYG10noCS02.IqMpE3wlRmr4qXFHFVnxT7ddMk2kRz2"], ["created_at", "2019-12-11 23:37:56.822842"], ["updated_at", "2019-12-11 23:37:56.822842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:56.832219"], ["updated_at", "2019-12-11 23:37:56.832219"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1880], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 172ms (Views: 115.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0oNlzSK58ojLIGUl3.vq/.vUkhbbO5S43LeeoS/WCsIhgtjonTsyW"], ["created_at", "2019-12-11 23:37:57.014870"], ["updated_at", "2019-12-11 23:37:57.014870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.017163"], ["updated_at", "2019-12-11 23:37:57.017163"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1600], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1881], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1881], ["room_id", 1600], ["created_at", "2019-12-11 23:37:57.056647"], ["updated_at", "2019-12-11 23:37:57.056647"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$QoEITaA1XSNh6VNd8pyoV.bSDVlkUAWc.FGoGirVrkhTcBgnvpJWq"], ["created_at", "2019-12-11 23:37:57.097989"], ["updated_at", "2019-12-11 23:37:57.097989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.100238"], ["updated_at", "2019-12-11 23:37:57.100238"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1601], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1882], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1882], ["room_id", 1601], ["created_at", "2019-12-11 23:37:57.104875"], ["updated_at", "2019-12-11 23:37:57.104875"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/1ve5dHWKtEyZV3VUq7ih.5oLcLI6RqPly9mK5iZ.iJuvy7v1INOC"], ["created_at", "2019-12-11 23:37:57.114242"], ["updated_at", "2019-12-11 23:37:57.114242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.116788"], ["updated_at", "2019-12-11 23:37:57.116788"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1602], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1883], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1883], ["room_id", 1602], ["created_at", "2019-12-11 23:37:57.121969"], ["updated_at", "2019-12-11 23:37:57.121969"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$y.aq2LGdqG/J4YFdLvf7M.d/kXjB8w1C.2hgqYsy9fCeLJmkl8tjW"], ["created_at", "2019-12-11 23:37:57.138956"], ["updated_at", "2019-12-11 23:37:57.138956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.141565"], ["updated_at", "2019-12-11 23:37:57.141565"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1603"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1603], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1603')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Completed 200 OK in 109ms (Views: 74.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$89PLGz9zRBCALXwpvmJnzuaMmyqLX/UkjTb6h/9osAWOnH8JkWUwe"], ["created_at", "2019-12-11 23:37:57.260227"], ["updated_at", "2019-12-11 23:37:57.260227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.262559"], ["updated_at", "2019-12-11 23:37:57.262559"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1604], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1885], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1885], ["room_id", 1604], ["created_at", "2019-12-11 23:37:57.266746"], ["updated_at", "2019-12-11 23:37:57.266746"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1604"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1604], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1604')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$eayg9UxT.ZeB0pBVnFxXwuLo3sVUHjzT21yAMMH2hGM0lGE6dBvBq"], ["created_at", "2019-12-11 23:37:57.278060"], ["updated_at", "2019-12-11 23:37:57.278060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.280396"], ["updated_at", "2019-12-11 23:37:57.280396"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1605], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1886], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1886], ["room_id", 1605], ["created_at", "2019-12-11 23:37:57.284654"], ["updated_at", "2019-12-11 23:37:57.284654"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1605"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1605], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1605')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HDwvSZW0eVN1lhljy4qgwOPOXhktzcIBK5ABCIN1Tw03OPduDJ0GO"], ["created_at", "2019-12-11 23:37:57.296437"], ["updated_at", "2019-12-11 23:37:57.296437"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.298811"], ["updated_at", "2019-12-11 23:37:57.298811"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1606], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1887], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1887], ["room_id", 1606], ["created_at", "2019-12-11 23:37:57.303446"], ["updated_at", "2019-12-11 23:37:57.303446"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1606"}
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1606], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1606')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YwrVrpvRqG6K.GRAzgzEZufCdQ/jHFCx7zpcpviUJmEfvWzfZ9I7e"], ["created_at", "2019-12-11 23:37:57.313371"], ["updated_at", "2019-12-11 23:37:57.313371"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.315621"], ["updated_at", "2019-12-11 23:37:57.315621"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1607], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1888], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1888], ["room_id", 1607], ["created_at", "2019-12-11 23:37:57.319956"], ["updated_at", "2019-12-11 23:37:57.319956"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1607"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1607], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1607')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 110ms (Views: 76.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jXjokB/iySQqXTPuarBEPOlLIVJPJfDmZJkHj/XY7C96txhgiT35."], ["created_at", "2019-12-11 23:37:57.900178"], ["updated_at", "2019-12-11 23:37:57.900178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.902669"], ["updated_at", "2019-12-11 23:37:57.902669"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.924409"], ["last_sign_in_at", "2019-12-11 23:37:57.924409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.925171"], ["id", 1889]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1608"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1608], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1889], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1889], ["room_id", 1608], ["created_at", "2019-12-11 23:37:57.932982"], ["updated_at", "2019-12-11 23:37:57.932982"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1608], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$NXM7N2ZjOxWI2v4ZjLDyp.3f1VPYO6DDxBfYnAOQnpOf1wifP71Xm"], ["created_at", "2019-12-11 23:37:57.942831"], ["updated_at", "2019-12-11 23:37:57.942831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.945118"], ["updated_at", "2019-12-11 23:37:57.945118"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.947645"], ["last_sign_in_at", "2019-12-11 23:37:57.947645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.948176"], ["id", 1890]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1609"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1609], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1890], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1890], ["room_id", 1609], ["created_at", "2019-12-11 23:37:57.953360"], ["updated_at", "2019-12-11 23:37:57.953360"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$LPs.17GcKCQbuU6pDpJ0nuTG31Gyyt6.HMOUdRXfbd23vtqpmrvyK"], ["created_at", "2019-12-11 23:37:57.962548"], ["updated_at", "2019-12-11 23:37:57.962548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.965106"], ["updated_at", "2019-12-11 23:37:57.965106"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.968215"], ["last_sign_in_at", "2019-12-11 23:37:57.968215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.968977"], ["id", 1891]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1610"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1610], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$EQA86bic7Y.oCnT0PBeo.eW3tLpFImxhKHBMFKisMuko5Xsewp1Su"], ["created_at", "2019-12-11 23:37:57.978728"], ["updated_at", "2019-12-11 23:37:57.978728"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.980963"], ["updated_at", "2019-12-11 23:37:57.980963"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.983462"], ["last_sign_in_at", "2019-12-11 23:37:57.983462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.984135"], ["id", 1892]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1611"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$p7yJjKS/X3HmWTxp/SEiGOQ2I1YNSiByJUl88ICWz3CCBk.c328Zi"], ["created_at", "2019-12-11 23:37:57.994733"], ["updated_at", "2019-12-11 23:37:57.994733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.996977"], ["updated_at", "2019-12-11 23:37:57.996977"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1612], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1893], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1893], ["room_id", 1612], ["created_at", "2019-12-11 23:37:58.000682"], ["updated_at", "2019-12-11 23:37:58.000682"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1612” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.003659"], ["last_sign_in_at", "2019-12-11 23:37:58.003659"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.004171"], ["id", 1893]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1612"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1612], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1612')[0m
Rendered appointments/show.html.erb within layouts/application (21.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 408ms (Views: 391.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YBfLxBCiDm8otSBXSg2A6.6vZtpU0swWsycptGzbRzWKoERfrhO6W"], ["created_at", "2019-12-11 23:37:58.422958"], ["updated_at", "2019-12-11 23:37:58.422958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.425198"], ["updated_at", "2019-12-11 23:37:58.425198"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1613], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1894], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1894], ["room_id", 1613], ["created_at", "2019-12-11 23:37:58.429145"], ["updated_at", "2019-12-11 23:37:58.429145"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1613], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1894], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1894], ["room_id", 1613], ["created_at", "2019-12-11 23:37:58.432976"], ["updated_at", "2019-12-11 23:37:58.432976"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.435795"], ["last_sign_in_at", "2019-12-11 23:37:58.435795"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.436426"], ["id", 1894]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1894]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$5rdJwQeCSmwTnqACVhIdguLxMGj.TZr9LhNRAGvfnYUXmqb6LKmpW"], ["created_at", "2019-12-11 23:37:58.466661"], ["updated_at", "2019-12-11 23:37:58.466661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.469199"], ["updated_at", "2019-12-11 23:37:58.469199"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1614], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1895], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1895], ["room_id", 1614], ["created_at", "2019-12-11 23:37:58.473310"], ["updated_at", "2019-12-11 23:37:58.473310"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1614], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1895], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1895], ["room_id", 1614], ["created_at", "2019-12-11 23:37:58.477153"], ["updated_at", "2019-12-11 23:37:58.477153"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.479444"], ["last_sign_in_at", "2019-12-11 23:37:58.479444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.479972"], ["id", 1895]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1895]] Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$D5MVuIhe7rtbeOytxpo/5.5AXMov79L6SFj5BZAeCyJnJIZOtje/."], ["created_at", "2019-12-11 23:37:58.493652"], ["updated_at", "2019-12-11 23:37:58.493652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.495770"], ["updated_at", "2019-12-11 23:37:58.495770"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1615], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1896], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1896], ["room_id", 1615], ["created_at", "2019-12-11 23:37:58.499736"], ["updated_at", "2019-12-11 23:37:58.499736"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/890” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.502654"], ["last_sign_in_at", "2019-12-11 23:37:58.502654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.503181"], ["id", 1896]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"890"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 890], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 890]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IVnkpkAqNGCJR.PWtMiux.AjavmOVjmg9w2ebB9BKTdiNCx92sKPW"], ["created_at", "2019-12-11 23:37:58.516802"], ["updated_at", "2019-12-11 23:37:58.516802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.519620"], ["last_sign_in_at", "2019-12-11 23:37:58.519620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.520145"], ["id", 1897]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 37ms (Views: 19.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7UODHRw3LzgMqpdXnhv7keC0E1tL8iOd9PBRYJzaNi3sccJ5J7.HK"], ["created_at", "2019-12-11 23:37:58.566149"], ["updated_at", "2019-12-11 23:37:58.566149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.568761"], ["updated_at", "2019-12-11 23:37:58.568761"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1616], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1898], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1898], ["room_id", 1616], ["created_at", "2019-12-11 23:37:58.572882"], ["updated_at", "2019-12-11 23:37:58.572882"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1616], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1898], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1898], ["room_id", 1616], ["created_at", "2019-12-11 23:37:58.576896"], ["updated_at", "2019-12-11 23:37:58.576896"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.579365"], ["last_sign_in_at", "2019-12-11 23:37:58.579365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.579864"], ["id", 1898]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1616], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1898], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1898], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2POKQTOZhA7mMwhiHnZoLOpR2YdRiGWkyUzJyRLBUt6lcKGuQBEkK"], ["created_at", "2019-12-11 23:37:58.594490"], ["updated_at", "2019-12-11 23:37:58.594490"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.596746"], ["updated_at", "2019-12-11 23:37:58.596746"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1617], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1899], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1899], ["room_id", 1617], ["created_at", "2019-12-11 23:37:58.600750"], ["updated_at", "2019-12-11 23:37:58.600750"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1617], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1899], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1899], ["room_id", 1617], ["created_at", "2019-12-11 23:37:58.605413"], ["updated_at", "2019-12-11 23:37:58.605413"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.607821"], ["last_sign_in_at", "2019-12-11 23:37:58.607821"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.608329"], ["id", 1899]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1617], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1899], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1899], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$./NLRiGRknN4TONexyesrOGZt9/tvYMBtF8fKOZ.5jsWS.j3tDEqm"], ["created_at", "2019-12-11 23:37:58.623744"], ["updated_at", "2019-12-11 23:37:58.623744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.625959"], ["updated_at", "2019-12-11 23:37:58.625959"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1618], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1900], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1900], ["room_id", 1618], ["created_at", "2019-12-11 23:37:58.629770"], ["updated_at", "2019-12-11 23:37:58.629770"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1618], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1900], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1900], ["room_id", 1618], ["created_at", "2019-12-11 23:37:58.633775"], ["updated_at", "2019-12-11 23:37:58.633775"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.636753"], ["last_sign_in_at", "2019-12-11 23:37:58.636753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.637299"], ["id", 1900]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9qcRqNIQc8clI3tTz8Myp.DvrInUfewcxFI.A1xTFP2Vaz4C2ds0y"], ["created_at", "2019-12-11 23:37:58.648358"], ["updated_at", "2019-12-11 23:37:58.648358"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.650652"], ["updated_at", "2019-12-11 23:37:58.650652"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1619], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1901], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1901], ["room_id", 1619], ["created_at", "2019-12-11 23:37:58.655829"], ["updated_at", "2019-12-11 23:37:58.655829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1619], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1901], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1901], ["room_id", 1619], ["created_at", "2019-12-11 23:37:58.660532"], ["updated_at", "2019-12-11 23:37:58.660532"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.663063"], ["last_sign_in_at", "2019-12-11 23:37:58.663063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.663698"], ["id", 1901]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ovUZyQjn33nZD00nPKcghu8fisuU2PIHa02VJinSiW/WLprjLsVpS"], ["created_at", "2019-12-11 23:37:58.677037"], ["updated_at", "2019-12-11 23:37:58.677037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.680175"], ["last_sign_in_at", "2019-12-11 23:37:58.680175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.680784"], ["id", 1902]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (9.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 65ms (Views: 48.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uxLivJ4QcNOR5w8CKrMaXe/uP5YxF2WdGzCPnw0P4S/kZ8m/BTK2a"], ["created_at", "2019-12-11 23:37:58.759025"], ["updated_at", "2019-12-11 23:37:58.759025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.761323"], ["last_sign_in_at", "2019-12-11 23:37:58.761323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.761899"], ["id", 1903]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tcn1dsuJ9rILqFTnKqf2q.WhVwZ18zc2PXooifL0.lXP960RxVZMW"], ["created_at", "2019-12-11 23:37:58.771965"], ["updated_at", "2019-12-11 23:37:58.771965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.774337"], ["last_sign_in_at", "2019-12-11 23:37:58.774337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.774860"], ["id", 1904]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G2NCMXSBVVby8/M/vovse.CHEwNNWABVGkyonIzCJkw7CfotDDDhy"], ["created_at", "2019-12-11 23:37:58.802921"], ["updated_at", "2019-12-11 23:37:58.802921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.805087"], ["last_sign_in_at", "2019-12-11 23:37:58.805087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.805593"], ["id", 1905]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rzUbpaUtEdndjABQhAYhQ.mPO.8bgQNPI3PhO91aL9hiarZwSfzWO"], ["created_at", "2019-12-11 23:37:58.824249"], ["updated_at", "2019-12-11 23:37:58.824249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.826251"], ["updated_at", "2019-12-11 23:37:58.826251"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1620” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.828339"], ["last_sign_in_at", "2019-12-11 23:37:58.828339"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.828850"], ["id", 1906]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1620"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1620], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i30bOSdsee3zblMj.N8pcO/ZgIpjvGub6Eo/s.rmfSRIWD7R7B.um"], ["created_at", "2019-12-11 23:37:58.855638"], ["updated_at", "2019-12-11 23:37:58.855638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.857885"], ["updated_at", "2019-12-11 23:37:58.857885"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1621” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.860327"], ["last_sign_in_at", "2019-12-11 23:37:58.860327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.860865"], ["id", 1907]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1621"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1621], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.870938"], ["updated_at", "2019-12-11 23:37:58.870938"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1622” for 127.0.0.1 at 2019-12-11 20:37:58 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1622"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hhS6ULMd/4D2GJE2DRBRC.fKXHj0Yct4W2mef1TN19QiQUiim2vt6"], ["created_at", "2019-12-11 23:37:58.881253"], ["updated_at", "2019-12-11 23:37:58.881253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.883439"], ["updated_at", "2019-12-11 23:37:58.883439"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1623/edit” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.885770"], ["last_sign_in_at", "2019-12-11 23:37:58.885770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.886359"], ["id", 1908]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1623"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1623], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3VsMw4rglloYO54fkDpqjexlPPgPNQtvY6aoZvIPsMyPVL6rX8lsW"], ["created_at", "2019-12-11 23:37:58.915202"], ["updated_at", "2019-12-11 23:37:58.915202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.917496"], ["updated_at", "2019-12-11 23:37:58.917496"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1624/edit” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.921346"], ["last_sign_in_at", "2019-12-11 23:37:58.921346"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.922232"], ["id", 1909]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1624"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1624], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.941187"], ["updated_at", "2019-12-11 23:37:58.941187"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1625” for 127.0.0.1 at 2019-12-11 20:37:58 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1625"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zhdFYv2VOOnvAdEcHrryOeC3QmZ8lmbuCPKSOR0amMmXuRbH5t1QG"], ["created_at", "2019-12-11 23:37:58.953250"], ["updated_at", "2019-12-11 23:37:58.953250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.955839"], ["last_sign_in_at", "2019-12-11 23:37:58.955839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.956401"], ["id", 1910]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.959693"], ["updated_at", "2019-12-11 23:37:58.959693"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4blsqb8QW9wnvwmjwsQ7c.r1p5ABko6nDjF7aov23CWNN5eJjMtXy"], ["created_at", "2019-12-11 23:37:58.968535"], ["updated_at", "2019-12-11 23:37:58.968535"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.971935"], ["last_sign_in_at", "2019-12-11 23:37:58.971935"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.972546"], ["id", 1911]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.975919"], ["updated_at", "2019-12-11 23:37:58.975919"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.RvQGYHWI74QJTz79Brf1.lgdUUlWake0d.D0XbmtCIHelQv8WAge"], ["created_at", "2019-12-11 23:37:58.984521"], ["updated_at", "2019-12-11 23:37:58.984521"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.987436"], ["last_sign_in_at", "2019-12-11 23:37:58.987436"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.987937"], ["id", 1912]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fUuIW6uidb50MSYlRW6DFOY3EMUnicZ1inDGr7kENH.jJE5wbtiIm"], ["created_at", "2019-12-11 23:37:58.998844"], ["updated_at", "2019-12-11 23:37:58.998844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.001743"], ["last_sign_in_at", "2019-12-11 23:37:59.001743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.002437"], ["id", 1913]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wTQVqyd5KHWu6XHAm3xZK.wp13Yq4CM3DblJ9jnBP27YqGNcF8gIG"], ["created_at", "2019-12-11 23:37:59.013556"], ["updated_at", "2019-12-11 23:37:59.013556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.016185"], ["last_sign_in_at", "2019-12-11 23:37:59.016185"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.016697"], ["id", 1914]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ctYhTuaRQ18yhE5yTUtrudyzyZHXjiHQiuqk2Wm620gb.x19yd7i"], ["created_at", "2019-12-11 23:37:59.027878"], ["updated_at", "2019-12-11 23:37:59.027878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.030242"], ["updated_at", "2019-12-11 23:37:59.030242"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1628” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.032682"], ["last_sign_in_at", "2019-12-11 23:37:59.032682"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.033196"], ["id", 1915]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1628"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1628], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:37:59.037569"], ["id", 1628]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1628 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RJyGaqJ2sQmEynkbcCvgau2myLcvEhIgNJVH5FbUgi2QzN5dVqepC"], ["created_at", "2019-12-11 23:37:59.046082"], ["updated_at", "2019-12-11 23:37:59.046082"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.048396"], ["updated_at", "2019-12-11 23:37:59.048396"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1629” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.051078"], ["last_sign_in_at", "2019-12-11 23:37:59.051078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.051918"], ["id", 1916]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1629"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1629], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:37:59.055912"], ["id", 1629]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1629 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ck.7QqKW7LqJ6u0wQwPb3Om3/HOhYPR04gosgHe1LMST.S.ZOH8PG"], ["created_at", "2019-12-11 23:37:59.064463"], ["updated_at", "2019-12-11 23:37:59.064463"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.066680"], ["updated_at", "2019-12-11 23:37:59.066680"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1630” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.069540"], ["last_sign_in_at", "2019-12-11 23:37:59.069540"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.070114"], ["id", 1917]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1630"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1630], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6Iwbb3sz6Kc4eMNL2cUCouciaOm9xbwdwcA7oG05qStnhw0uj.7LG"], ["created_at", "2019-12-11 23:37:59.084331"], ["updated_at", "2019-12-11 23:37:59.084331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.087139"], ["updated_at", "2019-12-11 23:37:59.087139"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1631” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.089660"], ["last_sign_in_at", "2019-12-11 23:37:59.089660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.090203"], ["id", 1918]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1631"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1631], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sPNOvXEo2AGK2f6XMpi2pOHwN0kxwdcDZRA99zNwYlvb2DPLH6mxq"], ["created_at", "2019-12-11 23:37:59.104790"], ["updated_at", "2019-12-11 23:37:59.104790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.107847"], ["last_sign_in_at", "2019-12-11 23:37:59.107847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.108460"], ["id", 1919]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$awnCS4QQydGY6jwpAcE/UOo24tgrzrIYf0HEzwMT.uIIgXGi4J9Eu"], ["created_at", "2019-12-11 23:37:59.118992"], ["updated_at", "2019-12-11 23:37:59.118992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.121448"], ["updated_at", "2019-12-11 23:37:59.121448"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1632” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.123364"], ["last_sign_in_at", "2019-12-11 23:37:59.123364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.123841"], ["id", 1920]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1632"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1632], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1632]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K0jq4uc8IHF9CGP9m/MN..V5aMJ15akEp/I4Sh0g9w5RvVL8954qm"], ["created_at", "2019-12-11 23:37:59.135385"], ["updated_at", "2019-12-11 23:37:59.135385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.137756"], ["updated_at", "2019-12-11 23:37:59.137756"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1633” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.139750"], ["last_sign_in_at", "2019-12-11 23:37:59.139750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.140271"], ["id", 1921]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1633"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1633], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1633]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XYE6LWXJp7YPTYIMHZ10fOZy1NP1iSWOcpOPQv5ZmrhDPj.VgMyCC"], ["created_at", "2019-12-11 23:37:59.151412"], ["updated_at", "2019-12-11 23:37:59.151412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.153913"], ["updated_at", "2019-12-11 23:37:59.153913"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1634” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.155933"], ["last_sign_in_at", "2019-12-11 23:37:59.155933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.156448"], ["id", 1922]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1634"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cL9Y0n4ASNNue9Pmd.JG7.b3Qdpq8c27GynkpKFyDt7iWhkr1KHri"], ["created_at", "2019-12-11 23:37:59.165498"], ["updated_at", "2019-12-11 23:37:59.165498"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.167804"], ["updated_at", "2019-12-11 23:37:59.167804"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1635” for 127.0.0.1 at 2019-12-11 20:37:59 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.170236"], ["last_sign_in_at", "2019-12-11 23:37:59.170236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.170954"], ["id", 1923]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1635"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ghJhXmh82wPkUQNSWydP9.YwiMLaZPd29ilnRouHgsO/HX557.RPK"], ["created_at", "2019-12-11 23:40:24.300101"], ["updated_at", "2019-12-11 23:40:24.300101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.309383"], ["updated_at", "2019-12-11 23:40:24.309383"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1924], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.3ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 172ms (Views: 113.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$REu.xMA25QJUnB3N.Az.Y.w6McXtLdc/tYk.hDpX2uS.v8zYvnonO"], ["created_at", "2019-12-11 23:40:24.491937"], ["updated_at", "2019-12-11 23:40:24.491937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.494253"], ["updated_at", "2019-12-11 23:40:24.494253"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1637], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1925], ["LIMIT", 1]]
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1925], ["room_id", 1637], ["created_at", "2019-12-11 23:40:24.534651"], ["updated_at", "2019-12-11 23:40:24.534651"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1925], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)
[1m[36mAppointment Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 1925], ["id", 899], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$POMfij/.6Vo3gCbxcNaI7uESF1jDVMvAcOD3TwpAUdkNjRqF0lFvC"], ["created_at", "2019-12-11 23:40:24.551866"], ["updated_at", "2019-12-11 23:40:24.551866"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.554048"], ["updated_at", "2019-12-11 23:40:24.554048"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1638], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1926], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1926], ["room_id", 1638], ["created_at", "2019-12-11 23:40:24.558376"], ["updated_at", "2019-12-11 23:40:24.558376"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1926], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)
[1m[36mAppointment Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 1926], ["id", 900], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1UZmMSAEomJznku6zJf2qeeydB1iGjCui599X/BzQqpGf6jfbsMjG"], ["created_at", "2019-12-11 23:40:24.571594"], ["updated_at", "2019-12-11 23:40:24.571594"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.574261"], ["updated_at", "2019-12-11 23:40:24.574261"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1639], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1927], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1927], ["room_id", 1639], ["created_at", "2019-12-11 23:40:24.578873"], ["updated_at", "2019-12-11 23:40:24.578873"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1927], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$gOu544rRzQbR5EglQBBKxO1aOAt9KaHnrtYExC5s2imZvjJBKpnlm"], ["created_at", "2019-12-11 23:40:24.627523"], ["updated_at", "2019-12-11 23:40:24.627523"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.630008"], ["updated_at", "2019-12-11 23:40:24.630008"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1640"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1640], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1640')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Completed 200 OK in 108ms (Views: 74.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$niKo4KCUxN8xXWowMUO/ouyZNoXZqJbBkXyF59yF25r2JSf4oYWKu"], ["created_at", "2019-12-11 23:40:24.747142"], ["updated_at", "2019-12-11 23:40:24.747142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.749175"], ["updated_at", "2019-12-11 23:40:24.749175"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1641], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1929], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1929], ["room_id", 1641], ["created_at", "2019-12-11 23:40:24.753159"], ["updated_at", "2019-12-11 23:40:24.753159"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1641"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1641], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1641')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TL7PA0DS5G5OUe16DsVEnOfsq.npob8qkj927sK8etLJyYOnDDzFq"], ["created_at", "2019-12-11 23:40:24.763285"], ["updated_at", "2019-12-11 23:40:24.763285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.765368"], ["updated_at", "2019-12-11 23:40:24.765368"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1642], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1930], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1930], ["room_id", 1642], ["created_at", "2019-12-11 23:40:24.768904"], ["updated_at", "2019-12-11 23:40:24.768904"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1642"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1642], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1642')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SLk11kF/8MTS7XsP1Zsk4Oo8v0QMTEEpnFZFbebdySIIw6D7oxdAO"], ["created_at", "2019-12-11 23:40:24.779777"], ["updated_at", "2019-12-11 23:40:24.779777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.781727"], ["updated_at", "2019-12-11 23:40:24.781727"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1643], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1931], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1931], ["room_id", 1643], ["created_at", "2019-12-11 23:40:24.785423"], ["updated_at", "2019-12-11 23:40:24.785423"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1643"}
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1643], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1643')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SovD..2BbkfdCIHaBOoeruPkf0vfFFEPY8azcXFWdSKXfT3VnH/2u"], ["created_at", "2019-12-11 23:40:24.795158"], ["updated_at", "2019-12-11 23:40:24.795158"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.797202"], ["updated_at", "2019-12-11 23:40:24.797202"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1644], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1932], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1932], ["room_id", 1644], ["created_at", "2019-12-11 23:40:24.800537"], ["updated_at", "2019-12-11 23:40:24.800537"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1644"}
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1644], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1644')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 109ms (Views: 76.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$CwLLg7wadiN0y3Fd8WsJFusLmq.TVxHo9HhThAYIG8ET7wGx2lJxq"], ["created_at", "2019-12-11 23:40:25.390404"], ["updated_at", "2019-12-11 23:40:25.390404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.392721"], ["updated_at", "2019-12-11 23:40:25.392721"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.409210"], ["last_sign_in_at", "2019-12-11 23:40:25.409210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.409902"], ["id", 1933]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1645"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1645], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1933], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1933], ["room_id", 1645], ["created_at", "2019-12-11 23:40:25.417813"], ["updated_at", "2019-12-11 23:40:25.417813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1645], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$miUcxhW.lmU7fNbKkv80t.PZAoFhAvUMtSm0.FHdu2M5AQgzG4M2S"], ["created_at", "2019-12-11 23:40:25.427003"], ["updated_at", "2019-12-11 23:40:25.427003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.429299"], ["updated_at", "2019-12-11 23:40:25.429299"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.431797"], ["last_sign_in_at", "2019-12-11 23:40:25.431797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.432443"], ["id", 1934]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1646"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1646], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1934], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1934], ["room_id", 1646], ["created_at", "2019-12-11 23:40:25.437546"], ["updated_at", "2019-12-11 23:40:25.437546"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$L7XUi.1al/UtwFvpWojfeOR3KATCFKQvQrrm7UATxIpwJnOhZFzD."], ["created_at", "2019-12-11 23:40:25.446818"], ["updated_at", "2019-12-11 23:40:25.446818"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.449022"], ["updated_at", "2019-12-11 23:40:25.449022"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.451582"], ["last_sign_in_at", "2019-12-11 23:40:25.451582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.452171"], ["id", 1935]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1647"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1647], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$CaksgF2ydaHHMmapn9ZG8.mX5XSRIEx8YQw.8yuWiBxXBTMcsEWM."], ["created_at", "2019-12-11 23:40:25.461973"], ["updated_at", "2019-12-11 23:40:25.461973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.464291"], ["updated_at", "2019-12-11 23:40:25.464291"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.466684"], ["last_sign_in_at", "2019-12-11 23:40:25.466684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.467194"], ["id", 1936]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1648"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2IliqjHFuXkRLKLL2GLJ6enE7MNUOQsuWMGXzkDcdc45xqX6NKt8y"], ["created_at", "2019-12-11 23:40:25.477352"], ["updated_at", "2019-12-11 23:40:25.477352"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.479571"], ["updated_at", "2019-12-11 23:40:25.479571"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1649], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1937], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1937], ["room_id", 1649], ["created_at", "2019-12-11 23:40:25.483419"], ["updated_at", "2019-12-11 23:40:25.483419"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1649” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.485837"], ["last_sign_in_at", "2019-12-11 23:40:25.485837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.486335"], ["id", 1937]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1649"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1649], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1649')[0m
Rendered appointments/show.html.erb within layouts/application (21.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 404ms (Views: 385.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3QT9VPi6PL/rcjWntpPabeE/XFXZkvbbuXrMlEaOjibx4avoeasJ."], ["created_at", "2019-12-11 23:40:25.900048"], ["updated_at", "2019-12-11 23:40:25.900048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.902321"], ["updated_at", "2019-12-11 23:40:25.902321"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1650], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1938], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1938], ["room_id", 1650], ["created_at", "2019-12-11 23:40:25.906837"], ["updated_at", "2019-12-11 23:40:25.906837"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1650], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1938], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1938], ["room_id", 1650], ["created_at", "2019-12-11 23:40:25.911016"], ["updated_at", "2019-12-11 23:40:25.911016"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.913411"], ["last_sign_in_at", "2019-12-11 23:40:25.913411"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.913939"], ["id", 1938]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1938]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 22ms (Views: 4.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jk7IWhl7xdxkQDKW4j/IjOu.ELKcm.m1H8B1vQPwjNNd4XnTHnI/C"], ["created_at", "2019-12-11 23:40:25.944506"], ["updated_at", "2019-12-11 23:40:25.944506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.946858"], ["updated_at", "2019-12-11 23:40:25.946858"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1651], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1939], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1939], ["room_id", 1651], ["created_at", "2019-12-11 23:40:25.950818"], ["updated_at", "2019-12-11 23:40:25.950818"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1651], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1939], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1939], ["room_id", 1651], ["created_at", "2019-12-11 23:40:25.954744"], ["updated_at", "2019-12-11 23:40:25.954744"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.957227"], ["last_sign_in_at", "2019-12-11 23:40:25.957227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.957779"], ["id", 1939]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1939]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$D3A5G3EPAEbjcK4qPT9ELuYT7vAtbqvjk.7CDQ2Krjp.9hMIQb3qS"], ["created_at", "2019-12-11 23:40:25.971091"], ["updated_at", "2019-12-11 23:40:25.971091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.973715"], ["updated_at", "2019-12-11 23:40:25.973715"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1652], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1940], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1940], ["room_id", 1652], ["created_at", "2019-12-11 23:40:25.977699"], ["updated_at", "2019-12-11 23:40:25.977699"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/913” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.980104"], ["last_sign_in_at", "2019-12-11 23:40:25.980104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.980677"], ["id", 1940]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"913"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 913], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 913]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RTeZr.q27cI8AMLSbIC9CeYmIb9R2HEKxzzWHL0iBTb7OTVIAMBqK"], ["created_at", "2019-12-11 23:40:25.995407"], ["updated_at", "2019-12-11 23:40:25.995407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.998227"], ["last_sign_in_at", "2019-12-11 23:40:25.998227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.998880"], ["id", 1941]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 36ms (Views: 19.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gzglAKeJEM1bXx8HybD3Uutf05rNca0/D4YpRACqLh2cg.dZtm.Ki"], ["created_at", "2019-12-11 23:40:26.044590"], ["updated_at", "2019-12-11 23:40:26.044590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.046874"], ["updated_at", "2019-12-11 23:40:26.046874"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1653], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1942], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1942], ["room_id", 1653], ["created_at", "2019-12-11 23:40:26.050909"], ["updated_at", "2019-12-11 23:40:26.050909"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1653], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1942], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1942], ["room_id", 1653], ["created_at", "2019-12-11 23:40:26.054583"], ["updated_at", "2019-12-11 23:40:26.054583"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.057132"], ["last_sign_in_at", "2019-12-11 23:40:26.057132"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.057668"], ["id", 1942]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1653], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1942], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1942], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YwfmMRTkskeUbFEXVWEOtOHdHHEB1rD/dRhxhwmMNPgap0bULPMKC"], ["created_at", "2019-12-11 23:40:26.071072"], ["updated_at", "2019-12-11 23:40:26.071072"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.073757"], ["updated_at", "2019-12-11 23:40:26.073757"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1654], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1943], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1943], ["room_id", 1654], ["created_at", "2019-12-11 23:40:26.077965"], ["updated_at", "2019-12-11 23:40:26.077965"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1654], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1943], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1943], ["room_id", 1654], ["created_at", "2019-12-11 23:40:26.082546"], ["updated_at", "2019-12-11 23:40:26.082546"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.084805"], ["last_sign_in_at", "2019-12-11 23:40:26.084805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.085321"], ["id", 1943]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1654], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1943], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1943], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D6jbK47IDlOB2tvhBi.7RetCaYWvwzNc.tUyaZbDNRTNgKbW2Rtoa"], ["created_at", "2019-12-11 23:40:26.101807"], ["updated_at", "2019-12-11 23:40:26.101807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.104203"], ["updated_at", "2019-12-11 23:40:26.104203"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1655], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1944], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1944], ["room_id", 1655], ["created_at", "2019-12-11 23:40:26.108641"], ["updated_at", "2019-12-11 23:40:26.108641"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1655], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1944], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1944], ["room_id", 1655], ["created_at", "2019-12-11 23:40:26.112646"], ["updated_at", "2019-12-11 23:40:26.112646"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.115036"], ["last_sign_in_at", "2019-12-11 23:40:26.115036"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.115562"], ["id", 1944]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n/hADJWD/grF74SkEwV1ruphQoP9SUSt0fv9PaD/JqgCvhLr8kb42"], ["created_at", "2019-12-11 23:40:26.127077"], ["updated_at", "2019-12-11 23:40:26.127077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.129135"], ["updated_at", "2019-12-11 23:40:26.129135"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1656], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1945], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1945], ["room_id", 1656], ["created_at", "2019-12-11 23:40:26.132971"], ["updated_at", "2019-12-11 23:40:26.132971"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1656], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1945], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1945], ["room_id", 1656], ["created_at", "2019-12-11 23:40:26.137052"], ["updated_at", "2019-12-11 23:40:26.137052"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.139599"], ["last_sign_in_at", "2019-12-11 23:40:26.139599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.140434"], ["id", 1945]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6X5bP5ox0bWCsrTTKQN2x.qs0LqNbGCNS5yZlKQ5yRsfPl.u6WtP2"], ["created_at", "2019-12-11 23:40:26.154140"], ["updated_at", "2019-12-11 23:40:26.154140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.157241"], ["last_sign_in_at", "2019-12-11 23:40:26.157241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.157837"], ["id", 1946]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.9ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 66ms (Views: 49.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AVzXmU9wEMHtQohAc8i/5um9Lfyi4t1zMrtZrbzmSsE3B7CkJSWkO"], ["created_at", "2019-12-11 23:40:26.236453"], ["updated_at", "2019-12-11 23:40:26.236453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.238791"], ["last_sign_in_at", "2019-12-11 23:40:26.238791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.239475"], ["id", 1947]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mxVxPKukHzAjBtFEPgAR0uRJfMFcltQdmakYova5D80q13I80WJ6e"], ["created_at", "2019-12-11 23:40:26.250048"], ["updated_at", "2019-12-11 23:40:26.250048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.252499"], ["last_sign_in_at", "2019-12-11 23:40:26.252499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.253008"], ["id", 1948]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tgojvspuVTxJqzh3t9NRjuF0bdgAl/Ezge.DpYe8FJPuVATldCKte"], ["created_at", "2019-12-11 23:40:26.281240"], ["updated_at", "2019-12-11 23:40:26.281240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.283480"], ["last_sign_in_at", "2019-12-11 23:40:26.283480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.283959"], ["id", 1949]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/HT.TDTzQ2.FZCvlh3vFnemEeR.YLr8jE19pwdB5e0PUEIYhxCohK"], ["created_at", "2019-12-11 23:40:26.303839"], ["updated_at", "2019-12-11 23:40:26.303839"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.306436"], ["updated_at", "2019-12-11 23:40:26.306436"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1657” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.308952"], ["last_sign_in_at", "2019-12-11 23:40:26.308952"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.309506"], ["id", 1950]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1657"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1657], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3QHDqfM5ksKcgCjUPXHJ1uJlFDFAVNBWEvYVYtrSZvpJceIrKYstO"], ["created_at", "2019-12-11 23:40:26.337563"], ["updated_at", "2019-12-11 23:40:26.337563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.340130"], ["updated_at", "2019-12-11 23:40:26.340130"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1658” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.342282"], ["last_sign_in_at", "2019-12-11 23:40:26.342282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.342914"], ["id", 1951]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1658"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1658], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.352668"], ["updated_at", "2019-12-11 23:40:26.352668"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1659” for 127.0.0.1 at 2019-12-11 20:40:26 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1659"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N5gsopSrGU438Qn9YbVX/uzMLsfmmxeG/JCPgY2pIvATZNYtWU/Li"], ["created_at", "2019-12-11 23:40:26.363383"], ["updated_at", "2019-12-11 23:40:26.363383"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.365660"], ["updated_at", "2019-12-11 23:40:26.365660"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1660/edit” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.367803"], ["last_sign_in_at", "2019-12-11 23:40:26.367803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.368378"], ["id", 1952]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1660"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1660], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 22ms (Views: 4.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q3O.BTBi1lo8uGdEo8xBEuvGv7LQD0/ARlXPjIrKg94wXHqLR6ZJy"], ["created_at", "2019-12-11 23:40:26.408032"], ["updated_at", "2019-12-11 23:40:26.408032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.410494"], ["updated_at", "2019-12-11 23:40:26.410494"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1661/edit” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.412794"], ["last_sign_in_at", "2019-12-11 23:40:26.412794"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.413428"], ["id", 1953]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1661"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1661], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.425667"], ["updated_at", "2019-12-11 23:40:26.425667"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1662” for 127.0.0.1 at 2019-12-11 20:40:26 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1662"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jih3uzmRvzyEf8RU949mqO32za4rg9CoUcqRlfQHBA8t7sDWV8a3m"], ["created_at", "2019-12-11 23:40:26.436526"], ["updated_at", "2019-12-11 23:40:26.436526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.439055"], ["last_sign_in_at", "2019-12-11 23:40:26.439055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.439762"], ["id", 1954]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.443586"], ["updated_at", "2019-12-11 23:40:26.443586"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3sr1NRR/ggO.AgyycPwqvuYTnf1e.7Lw8G5XsZEGM1uGIoYg3cA0i"], ["created_at", "2019-12-11 23:40:26.452063"], ["updated_at", "2019-12-11 23:40:26.452063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.454741"], ["last_sign_in_at", "2019-12-11 23:40:26.454741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.455239"], ["id", 1955]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.458948"], ["updated_at", "2019-12-11 23:40:26.458948"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p4.Q3HcLoEkc3qo4D9svCuw3/oe45PdxGIzdoQwOxmgjW4/sb8TNi"], ["created_at", "2019-12-11 23:40:26.467415"], ["updated_at", "2019-12-11 23:40:26.467415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.469991"], ["last_sign_in_at", "2019-12-11 23:40:26.469991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.470509"], ["id", 1956]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/DHwEZjNnHVvkzMoVwyhKuN/50fCJrkTe16NDaosQ.Td0jM89.SO6"], ["created_at", "2019-12-11 23:40:26.481527"], ["updated_at", "2019-12-11 23:40:26.481527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.484057"], ["last_sign_in_at", "2019-12-11 23:40:26.484057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.484563"], ["id", 1957]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uEN1/FN0XjFN5sDmfJLJTeo4WiZrLpPxEFvlZLgiFkfZE1DmQfVRG"], ["created_at", "2019-12-11 23:40:26.496049"], ["updated_at", "2019-12-11 23:40:26.496049"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.498610"], ["last_sign_in_at", "2019-12-11 23:40:26.498610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.499110"], ["id", 1958]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RmuAWObthTYNHi.qKJ3w0ODo.bygNWLxr./.bdZA3N7N/XOpsdyau"], ["created_at", "2019-12-11 23:40:26.510034"], ["updated_at", "2019-12-11 23:40:26.510034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.512260"], ["updated_at", "2019-12-11 23:40:26.512260"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1665” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.514558"], ["last_sign_in_at", "2019-12-11 23:40:26.514558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.515046"], ["id", 1959]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1665"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1665], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:26.518708"], ["id", 1665]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1665 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ojU8yPwVeiscLzMjFAXD2.qcCn3ks6gA3NAX.UgZDuKsB3vnaGGTe"], ["created_at", "2019-12-11 23:40:26.527347"], ["updated_at", "2019-12-11 23:40:26.527347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.529685"], ["updated_at", "2019-12-11 23:40:26.529685"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1666” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.532382"], ["last_sign_in_at", "2019-12-11 23:40:26.532382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.533438"], ["id", 1960]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1666"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1666], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:26.538576"], ["id", 1666]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1666 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I57IYWOaOe3edfpyrCV9XelIG5oTiI79Y6JRSo.02p17jV3WbHNm."], ["created_at", "2019-12-11 23:40:26.546897"], ["updated_at", "2019-12-11 23:40:26.546897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.549063"], ["updated_at", "2019-12-11 23:40:26.549063"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1667” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.551514"], ["last_sign_in_at", "2019-12-11 23:40:26.551514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.552055"], ["id", 1961]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1667"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1667], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ReO/fJAgDfEnnB7Ymlq11u3W4BtKbeGCZcLFVTbOlkXcibUrKwv56"], ["created_at", "2019-12-11 23:40:26.566522"], ["updated_at", "2019-12-11 23:40:26.566522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.568742"], ["updated_at", "2019-12-11 23:40:26.568742"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1668” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.571090"], ["last_sign_in_at", "2019-12-11 23:40:26.571090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.571627"], ["id", 1962]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1668"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1668], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CYIZ5hJ6iNYdMd64/zHjaeSJ/XX.fiZ.vpsFtzyYTUgfexZ7DWAlK"], ["created_at", "2019-12-11 23:40:26.586507"], ["updated_at", "2019-12-11 23:40:26.586507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.589434"], ["last_sign_in_at", "2019-12-11 23:40:26.589434"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.590340"], ["id", 1963]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.W3x5fMXlRXyDmtEGb7Y9.WLfhbAPkM9GXhbavXaqUbey82c81cqq"], ["created_at", "2019-12-11 23:40:26.600516"], ["updated_at", "2019-12-11 23:40:26.600516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.602826"], ["updated_at", "2019-12-11 23:40:26.602826"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1669” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.604860"], ["last_sign_in_at", "2019-12-11 23:40:26.604860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.605394"], ["id", 1964]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1669"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1669], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1669]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EJaF/v3Tu/NOOZUbAsq86eNiNKaUVVHmOVbnSiF/8weviz7rboaAW"], ["created_at", "2019-12-11 23:40:26.616845"], ["updated_at", "2019-12-11 23:40:26.616845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.619027"], ["updated_at", "2019-12-11 23:40:26.619027"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1670” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.620947"], ["last_sign_in_at", "2019-12-11 23:40:26.620947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.621521"], ["id", 1965]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1670"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1670], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1670]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jkbbM5YL2oJtqXZl/YmOneaVCPryCiH4.tlLBO0R33YlITpqZDa4."], ["created_at", "2019-12-11 23:40:26.633733"], ["updated_at", "2019-12-11 23:40:26.633733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.636035"], ["updated_at", "2019-12-11 23:40:26.636035"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1671” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.637998"], ["last_sign_in_at", "2019-12-11 23:40:26.637998"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.638563"], ["id", 1966]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1671"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xxOKW5Vu5979q52A12pGsukAm5jZbRMKCEv3kgvzlRfrKoZ5x54sy"], ["created_at", "2019-12-11 23:40:26.648101"], ["updated_at", "2019-12-11 23:40:26.648101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.650387"], ["updated_at", "2019-12-11 23:40:26.650387"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1672” for 127.0.0.1 at 2019-12-11 20:40:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.652219"], ["last_sign_in_at", "2019-12-11 23:40:26.652219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.652715"], ["id", 1967]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1672"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$yesPICHr6j/oZS.2EQapHeqWAHx5Wa2BRpTxnPeE2kDulT1WECSP2"], ["created_at", "2019-12-11 23:40:48.533395"], ["updated_at", "2019-12-11 23:40:48.533395"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.542697"], ["updated_at", "2019-12-11 23:40:48.542697"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1968], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 173ms (Views: 113.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fdAwSb5AFhz9fYKILp0yVuxyaJFF/PHEnmEI25s0OXRH96N8/9X8W"], ["created_at", "2019-12-11 23:40:48.727339"], ["updated_at", "2019-12-11 23:40:48.727339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.730324"], ["updated_at", "2019-12-11 23:40:48.730324"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1674], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1969], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1969], ["room_id", 1674], ["created_at", "2019-12-11 23:40:48.770501"], ["updated_at", "2019-12-11 23:40:48.770501"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1969], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)
[1m[36mAppointment Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 1969], ["id", 922], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$U0LqIuRPb4RgdgLPJkhhIemsKOPqPIwoaOJczIGUU4tc.pDDFd00K"], ["created_at", "2019-12-11 23:40:48.786111"], ["updated_at", "2019-12-11 23:40:48.786111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.788468"], ["updated_at", "2019-12-11 23:40:48.788468"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1675], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1970], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1970], ["room_id", 1675], ["created_at", "2019-12-11 23:40:48.793028"], ["updated_at", "2019-12-11 23:40:48.793028"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1970], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 1970], ["id", 923], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$6GaLuyW9IUbvc.8HBTsDKeptVeHEeDwn2c4Qor//aTTvsCxphBw4W"], ["created_at", "2019-12-11 23:40:48.804625"], ["updated_at", "2019-12-11 23:40:48.804625"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.807034"], ["updated_at", "2019-12-11 23:40:48.807034"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1676], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1971], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1971], ["room_id", 1676], ["created_at", "2019-12-11 23:40:48.811418"], ["updated_at", "2019-12-11 23:40:48.811418"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1971], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$phGWPFA1vMSEorbVjs7f6Ooeih6u9lZkFuxs08IzXrTGNTqLlgFDC"], ["created_at", "2019-12-11 23:40:48.853897"], ["updated_at", "2019-12-11 23:40:48.853897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.856224"], ["updated_at", "2019-12-11 23:40:48.856224"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1677"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1677], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1677')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Completed 200 OK in 110ms (Views: 75.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$9bhE9JDspoCBsqGEaAKJ6e1JbsvbHPyuevoXZx7P3tYiVfBrHviU2"], ["created_at", "2019-12-11 23:40:48.975585"], ["updated_at", "2019-12-11 23:40:48.975585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.977871"], ["updated_at", "2019-12-11 23:40:48.977871"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1678], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1973], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1973], ["room_id", 1678], ["created_at", "2019-12-11 23:40:48.981886"], ["updated_at", "2019-12-11 23:40:48.981886"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1678"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1678], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1678')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$A3cOL27x8HuDey5uWAPS/.1CW0DP0GSgFedNoj0giT3W7czB.unae"], ["created_at", "2019-12-11 23:40:48.993179"], ["updated_at", "2019-12-11 23:40:48.993179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.995490"], ["updated_at", "2019-12-11 23:40:48.995490"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1679], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1974], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1974], ["room_id", 1679], ["created_at", "2019-12-11 23:40:48.999342"], ["updated_at", "2019-12-11 23:40:48.999342"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1679"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1679], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1679')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dY266hzrJgCRBm21HCGOYuK2KyF2txDGw7GVHVp9bSKZATSNf3kTa"], ["created_at", "2019-12-11 23:40:49.011831"], ["updated_at", "2019-12-11 23:40:49.011831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.014617"], ["updated_at", "2019-12-11 23:40:49.014617"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1680], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1975], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1975], ["room_id", 1680], ["created_at", "2019-12-11 23:40:49.018595"], ["updated_at", "2019-12-11 23:40:49.018595"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1680"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1680], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1680')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$v1.PaqbHDwymjC5nc9jyoOWYMB4NBNr3a2oalA9D7zNounq0b2g0K"], ["created_at", "2019-12-11 23:40:49.029183"], ["updated_at", "2019-12-11 23:40:49.029183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.031503"], ["updated_at", "2019-12-11 23:40:49.031503"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1681], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1976], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1976], ["room_id", 1681], ["created_at", "2019-12-11 23:40:49.035380"], ["updated_at", "2019-12-11 23:40:49.035380"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1681"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1681], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1681')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 110ms (Views: 77.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dP85MVChyzQ0yT2rSxBsmOlLlKI19.KC88nwM7/5.RhmlHTGlkFNi"], ["created_at", "2019-12-11 23:40:49.621314"], ["updated_at", "2019-12-11 23:40:49.621314"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.623462"], ["updated_at", "2019-12-11 23:40:49.623462"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.643553"], ["last_sign_in_at", "2019-12-11 23:40:49.643553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.644206"], ["id", 1977]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1682"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1682], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1977], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1977], ["room_id", 1682], ["created_at", "2019-12-11 23:40:49.651636"], ["updated_at", "2019-12-11 23:40:49.651636"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1682], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$v5.IccE5CSeZhgvfc6fOOesFiUaS1tAXC3SajqPylGC04us98IdB2"], ["created_at", "2019-12-11 23:40:49.660610"], ["updated_at", "2019-12-11 23:40:49.660610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.662896"], ["updated_at", "2019-12-11 23:40:49.662896"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.665546"], ["last_sign_in_at", "2019-12-11 23:40:49.665546"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.666170"], ["id", 1978]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1683"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1683], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1978], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1978], ["room_id", 1683], ["created_at", "2019-12-11 23:40:49.671302"], ["updated_at", "2019-12-11 23:40:49.671302"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$dZKm.dw77mpG6Mmu7Bk3ruuNf9JHMx5ECXMXBJ9Y1BMpvXJLBj1xi"], ["created_at", "2019-12-11 23:40:49.680643"], ["updated_at", "2019-12-11 23:40:49.680643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.682818"], ["updated_at", "2019-12-11 23:40:49.682818"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.685282"], ["last_sign_in_at", "2019-12-11 23:40:49.685282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.685818"], ["id", 1979]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1684"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1684], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$J74pa/vujaOWLB4b801P1OZ.zqaOBI97hAT6tnS34FytGayIoTzra"], ["created_at", "2019-12-11 23:40:49.695109"], ["updated_at", "2019-12-11 23:40:49.695109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.697514"], ["updated_at", "2019-12-11 23:40:49.697514"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.699888"], ["last_sign_in_at", "2019-12-11 23:40:49.699888"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.700491"], ["id", 1980]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1685"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y01GAKMi/wsG7GKpA1L3NecDu09QbOiJvKMXBcwPkVs3p62MDI5Yi"], ["created_at", "2019-12-11 23:40:49.710814"], ["updated_at", "2019-12-11 23:40:49.710814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.712719"], ["updated_at", "2019-12-11 23:40:49.712719"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1686], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1981], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1981], ["room_id", 1686], ["created_at", "2019-12-11 23:40:49.716427"], ["updated_at", "2019-12-11 23:40:49.716427"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1686” for 127.0.0.1 at 2019-12-11 20:40:49 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.718613"], ["last_sign_in_at", "2019-12-11 23:40:49.718613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.719058"], ["id", 1981]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1686"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1686], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1686')[0m
Rendered appointments/show.html.erb within layouts/application (21.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 401ms (Views: 383.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$AqhdLBmsUD4ortoQzckLDOVgmRTSr9okWVeOXW4.URei.aLQmOF52"], ["created_at", "2019-12-11 23:40:50.129835"], ["updated_at", "2019-12-11 23:40:50.129835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.132261"], ["updated_at", "2019-12-11 23:40:50.132261"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1687], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1982], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1982], ["room_id", 1687], ["created_at", "2019-12-11 23:40:50.136204"], ["updated_at", "2019-12-11 23:40:50.136204"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1687], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1982], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1982], ["room_id", 1687], ["created_at", "2019-12-11 23:40:50.140218"], ["updated_at", "2019-12-11 23:40:50.140218"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.142965"], ["last_sign_in_at", "2019-12-11 23:40:50.142965"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.143475"], ["id", 1982]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1982]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$tMejxS.tkV7OMJPD2ypJtuXBzUoy2/opSd6mE7nWPXpDIt0o5GjdG"], ["created_at", "2019-12-11 23:40:50.174229"], ["updated_at", "2019-12-11 23:40:50.174229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.176532"], ["updated_at", "2019-12-11 23:40:50.176532"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1688], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1983], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1983], ["room_id", 1688], ["created_at", "2019-12-11 23:40:50.180565"], ["updated_at", "2019-12-11 23:40:50.180565"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1688], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1983], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1983], ["room_id", 1688], ["created_at", "2019-12-11 23:40:50.184404"], ["updated_at", "2019-12-11 23:40:50.184404"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.186812"], ["last_sign_in_at", "2019-12-11 23:40:50.186812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.187350"], ["id", 1983]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1983]] Rendered appointments/my_appointments.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$HxMXkuplPv8zwNYliA/jJeNpGi7B2OH/vSVOI6Rt9QpMnlM/i2IGS"], ["created_at", "2019-12-11 23:40:50.201312"], ["updated_at", "2019-12-11 23:40:50.201312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.203433"], ["updated_at", "2019-12-11 23:40:50.203433"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1689], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1984], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1984], ["room_id", 1689], ["created_at", "2019-12-11 23:40:50.208410"], ["updated_at", "2019-12-11 23:40:50.208410"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/936” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.210823"], ["last_sign_in_at", "2019-12-11 23:40:50.210823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.211355"], ["id", 1984]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"936"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 936], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 936]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$td.tJku.EWKChfiG3l9XAehSsNsiIY3tUcbMavZT3QaAPBLw9a96G"], ["created_at", "2019-12-11 23:40:50.226279"], ["updated_at", "2019-12-11 23:40:50.226279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.228976"], ["last_sign_in_at", "2019-12-11 23:40:50.228976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.229515"], ["id", 1985]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 37ms (Views: 19.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lY1MxIJ3bYy1a2Ymh2whMO8ecxRw1z1m4mV6eM4IG9h3ubTio/qma"], ["created_at", "2019-12-11 23:40:50.276658"], ["updated_at", "2019-12-11 23:40:50.276658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.278805"], ["updated_at", "2019-12-11 23:40:50.278805"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1690], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1986], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1986], ["room_id", 1690], ["created_at", "2019-12-11 23:40:50.282745"], ["updated_at", "2019-12-11 23:40:50.282745"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1690], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1986], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1986], ["room_id", 1690], ["created_at", "2019-12-11 23:40:50.286687"], ["updated_at", "2019-12-11 23:40:50.286687"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.288931"], ["last_sign_in_at", "2019-12-11 23:40:50.288931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.289505"], ["id", 1986]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1690], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1986], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1986], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZYZk7sx5nUrJY1QVSjS8WuYdQUG6lXgsYG65n8BAPVQF6sf/BFzMS"], ["created_at", "2019-12-11 23:40:50.303379"], ["updated_at", "2019-12-11 23:40:50.303379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.305595"], ["updated_at", "2019-12-11 23:40:50.305595"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1691], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1987], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1987], ["room_id", 1691], ["created_at", "2019-12-11 23:40:50.309896"], ["updated_at", "2019-12-11 23:40:50.309896"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1691], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1987], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1987], ["room_id", 1691], ["created_at", "2019-12-11 23:40:50.313915"], ["updated_at", "2019-12-11 23:40:50.313915"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.316227"], ["last_sign_in_at", "2019-12-11 23:40:50.316227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.316732"], ["id", 1987]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1691], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1987], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1987], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UUyUjE2K.sGns9kdG8JveOY6Cno8fsR.WeQxx.kRRSwWoH9S17z4m"], ["created_at", "2019-12-11 23:40:50.331607"], ["updated_at", "2019-12-11 23:40:50.331607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.333900"], ["updated_at", "2019-12-11 23:40:50.333900"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1692], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1988], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1988], ["room_id", 1692], ["created_at", "2019-12-11 23:40:50.337931"], ["updated_at", "2019-12-11 23:40:50.337931"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1692], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1988], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1988], ["room_id", 1692], ["created_at", "2019-12-11 23:40:50.342481"], ["updated_at", "2019-12-11 23:40:50.342481"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.344972"], ["last_sign_in_at", "2019-12-11 23:40:50.344972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.345525"], ["id", 1988]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4LoH0bSeE8j1n0nBT87aHeV3RC5D3cOvajQPz6cxzjHnT9h9t/mCi"], ["created_at", "2019-12-11 23:40:50.356992"], ["updated_at", "2019-12-11 23:40:50.356992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.359677"], ["updated_at", "2019-12-11 23:40:50.359677"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1693], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1989], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1989], ["room_id", 1693], ["created_at", "2019-12-11 23:40:50.363693"], ["updated_at", "2019-12-11 23:40:50.363693"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1693], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1989], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1989], ["room_id", 1693], ["created_at", "2019-12-11 23:40:50.367743"], ["updated_at", "2019-12-11 23:40:50.367743"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.370080"], ["last_sign_in_at", "2019-12-11 23:40:50.370080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.370640"], ["id", 1989]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vVdn9sNr9jbpZxEI07F7QufMLwEkr.XRx1.69L74bfr3OBJDSoT9q"], ["created_at", "2019-12-11 23:40:50.384767"], ["updated_at", "2019-12-11 23:40:50.384767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.387329"], ["last_sign_in_at", "2019-12-11 23:40:50.387329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.387860"], ["id", 1990]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.9ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 67ms (Views: 49.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cw.1MYbIz3PbO7eYNSKVPuB1wjG6HYfspQzjebDxN/xDUkcW27nbq"], ["created_at", "2019-12-11 23:40:50.467207"], ["updated_at", "2019-12-11 23:40:50.467207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.469534"], ["last_sign_in_at", "2019-12-11 23:40:50.469534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.470011"], ["id", 1991]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MFbVUGP8dH/CukZAMCLJPuIaO8H7EKU7.NsmAWxJf/vPMv7AyIef."], ["created_at", "2019-12-11 23:40:50.479971"], ["updated_at", "2019-12-11 23:40:50.479971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.482773"], ["last_sign_in_at", "2019-12-11 23:40:50.482773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.483320"], ["id", 1992]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vgbgFI2U1RjEnrY4gDRwrOh/1tkVl.qsSYkQ1Oj0I6jn3p9WLysdi"], ["created_at", "2019-12-11 23:40:50.511705"], ["updated_at", "2019-12-11 23:40:50.511705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.513950"], ["last_sign_in_at", "2019-12-11 23:40:50.513950"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.514457"], ["id", 1993]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sgNf/OMiTqxI57vqPRcm5e.iJW4iuq6q0Ss8/Zs2Ps0z1ZHtCMpFa"], ["created_at", "2019-12-11 23:40:50.533175"], ["updated_at", "2019-12-11 23:40:50.533175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.535295"], ["updated_at", "2019-12-11 23:40:50.535295"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1694” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.537322"], ["last_sign_in_at", "2019-12-11 23:40:50.537322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.537789"], ["id", 1994]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1694"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1694], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$44c5sfRrrPapF4wbZbEMG./S2T.yT7eVetBvZ3KofRsOWekk2Wix2"], ["created_at", "2019-12-11 23:40:50.566410"], ["updated_at", "2019-12-11 23:40:50.566410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.568839"], ["updated_at", "2019-12-11 23:40:50.568839"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1695” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.571116"], ["last_sign_in_at", "2019-12-11 23:40:50.571116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.571782"], ["id", 1995]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1695"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1695], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.582175"], ["updated_at", "2019-12-11 23:40:50.582175"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1696” for 127.0.0.1 at 2019-12-11 20:40:50 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1696"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pISBOd3f9CksftE5h7X4yOzmgiXGwmP0RqUCVk6n/h8nqaQ6JcnDe"], ["created_at", "2019-12-11 23:40:50.593313"], ["updated_at", "2019-12-11 23:40:50.593313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.595513"], ["updated_at", "2019-12-11 23:40:50.595513"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1697/edit” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.597779"], ["last_sign_in_at", "2019-12-11 23:40:50.597779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.598382"], ["id", 1996]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1697"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1697], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JZ7j7aDgLTJVzE0m96CaPuk0uZPyR7I6UXqvZpn2nOpOP/TSiIHle"], ["created_at", "2019-12-11 23:40:50.628236"], ["updated_at", "2019-12-11 23:40:50.628236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.630643"], ["updated_at", "2019-12-11 23:40:50.630643"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1698/edit” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.632971"], ["last_sign_in_at", "2019-12-11 23:40:50.632971"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.633581"], ["id", 1997]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1698"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1698], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.651972"], ["updated_at", "2019-12-11 23:40:50.651972"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1699” for 127.0.0.1 at 2019-12-11 20:40:50 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1699"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mzKHRYwu121H2.0QawxccO1EJXx7eaL1ZENhXyaKGU0qsZrK4dn1i"], ["created_at", "2019-12-11 23:40:50.663419"], ["updated_at", "2019-12-11 23:40:50.663419"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.665893"], ["last_sign_in_at", "2019-12-11 23:40:50.665893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.666395"], ["id", 1998]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.670043"], ["updated_at", "2019-12-11 23:40:50.670043"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5xUoifBxwZPR3Q94DyXoGOJo8RrzrjNd4FGToLRkSqd4O2Dq4c5He"], ["created_at", "2019-12-11 23:40:50.679132"], ["updated_at", "2019-12-11 23:40:50.679132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.681772"], ["last_sign_in_at", "2019-12-11 23:40:50.681772"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.682334"], ["id", 1999]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.685527"], ["updated_at", "2019-12-11 23:40:50.685527"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XX5OEOtmq.YZiCGUU2By7eZIIwe01Siei/Uq.p13qw0nH9f9csK3y"], ["created_at", "2019-12-11 23:40:50.694099"], ["updated_at", "2019-12-11 23:40:50.694099"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.696714"], ["last_sign_in_at", "2019-12-11 23:40:50.696714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.697223"], ["id", 2000]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sPtdCskZxzQYK0NDY.csn.rSY4z.IwqJFLbHfCzATT7zpD/IJczVm"], ["created_at", "2019-12-11 23:40:50.708942"], ["updated_at", "2019-12-11 23:40:50.708942"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.711528"], ["last_sign_in_at", "2019-12-11 23:40:50.711528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.712036"], ["id", 2001]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9d5L/f7n9/0IFoRBJ94.n.UfsYbJyefID5C.kdV.x7lb3GOqGdAxq"], ["created_at", "2019-12-11 23:40:50.722853"], ["updated_at", "2019-12-11 23:40:50.722853"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.725936"], ["last_sign_in_at", "2019-12-11 23:40:50.725936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.726495"], ["id", 2002]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WDzwDvCh2v5lbk7I5egEb.hIG9ePftxf8PH6OJDfb6PeNXNYm1gK6"], ["created_at", "2019-12-11 23:40:50.737195"], ["updated_at", "2019-12-11 23:40:50.737195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.739537"], ["updated_at", "2019-12-11 23:40:50.739537"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1702” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.742133"], ["last_sign_in_at", "2019-12-11 23:40:50.742133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.742656"], ["id", 2003]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1702"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1702], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:50.746535"], ["id", 1702]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1702 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SHxzLRTXf5Ef4WUkUfVK6OU/C2kbDt8dpw8QajuymScKRzID3eSSe"], ["created_at", "2019-12-11 23:40:50.754924"], ["updated_at", "2019-12-11 23:40:50.754924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.757581"], ["updated_at", "2019-12-11 23:40:50.757581"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1703” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.760181"], ["last_sign_in_at", "2019-12-11 23:40:50.760181"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.760791"], ["id", 2004]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1703"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1703], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:50.764708"], ["id", 1703]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1703 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cm0Ii/OeaCJBx3d6.IodEO19RSPFRvItMENcQF2zUZag7xdbfhyAi"], ["created_at", "2019-12-11 23:40:50.773299"], ["updated_at", "2019-12-11 23:40:50.773299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.775848"], ["updated_at", "2019-12-11 23:40:50.775848"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1704” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.778406"], ["last_sign_in_at", "2019-12-11 23:40:50.778406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.778915"], ["id", 2005]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1704"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1704], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AsIWIAHlsp4d/CZQesv26.7I49ltA8rV219nhdsf8utc8w3neNx.a"], ["created_at", "2019-12-11 23:40:50.793542"], ["updated_at", "2019-12-11 23:40:50.793542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.795840"], ["updated_at", "2019-12-11 23:40:50.795840"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1705” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.798219"], ["last_sign_in_at", "2019-12-11 23:40:50.798219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.798751"], ["id", 2006]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1705"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1705], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b4T4TqVVEbqHJpg6BEMVz.R0oHVrh1zxyoIU56hUY9RuJvZEq1trS"], ["created_at", "2019-12-11 23:40:50.813335"], ["updated_at", "2019-12-11 23:40:50.813335"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.815982"], ["last_sign_in_at", "2019-12-11 23:40:50.815982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.816506"], ["id", 2007]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fh0WiKg.SYKuZJKWznNpXuq0ACw9JODG2rnEY3ZbCXMst96oUlW/K"], ["created_at", "2019-12-11 23:40:50.827156"], ["updated_at", "2019-12-11 23:40:50.827156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.829592"], ["updated_at", "2019-12-11 23:40:50.829592"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1706” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.831516"], ["last_sign_in_at", "2019-12-11 23:40:50.831516"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.832010"], ["id", 2008]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1706"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1706], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1706]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6T/ChSx9CYo60kx1bkuTZ.gJvp6Y3lzvCiwGhTWP5PSLm.t6WcDTe"], ["created_at", "2019-12-11 23:40:50.843324"], ["updated_at", "2019-12-11 23:40:50.843324"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.845551"], ["updated_at", "2019-12-11 23:40:50.845551"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1707” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.847522"], ["last_sign_in_at", "2019-12-11 23:40:50.847522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.848086"], ["id", 2009]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1707"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1707], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1707]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z0ctLsYJUrHYxrvpUX6UNu2zCuQI.OJzRYJ9wHNpGVnl7G2BFhAse"], ["created_at", "2019-12-11 23:40:50.859563"], ["updated_at", "2019-12-11 23:40:50.859563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.861751"], ["updated_at", "2019-12-11 23:40:50.861751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1708” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.863734"], ["last_sign_in_at", "2019-12-11 23:40:50.863734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.864240"], ["id", 2010]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1708"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aFtbAjVXeRi.U9uH/LaKb.Ua2hokUpnNg.NlL3Xs0VUWoPoLnycvG"], ["created_at", "2019-12-11 23:40:50.875426"], ["updated_at", "2019-12-11 23:40:50.875426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.878173"], ["updated_at", "2019-12-11 23:40:50.878173"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1709” for 127.0.0.1 at 2019-12-11 20:40:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.880408"], ["last_sign_in_at", "2019-12-11 23:40:50.880408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.880905"], ["id", 2011]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1709"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7D6Utv1bxH/w7w2kYVQN2uM4r3O9EX7CTqTwjWcQTvYqglAJiUKQa"], ["created_at", "2019-12-11 23:41:49.763275"], ["updated_at", "2019-12-11 23:41:49.763275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:49.772328"], ["updated_at", "2019-12-11 23:41:49.772328"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2012], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 173ms (Views: 116.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$BuzSvfdFVj6XbprNF2MhS.4j1pJYuXDT7vYa4QIGr1RjGnshhKVIS"], ["created_at", "2019-12-11 23:41:49.955385"], ["updated_at", "2019-12-11 23:41:49.955385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:49.957627"], ["updated_at", "2019-12-11 23:41:49.957627"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1711], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2013], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2013], ["room_id", 1711], ["created_at", "2019-12-11 23:41:49.997020"], ["updated_at", "2019-12-11 23:41:49.997020"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2013], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[1m[36mAppointment Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2013], ["id", 945], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Aqhd3iz7aVhdfga.Jy5e8OlYmWCjWRYWuNfHNwmnkORe6LXthaUw2"], ["created_at", "2019-12-11 23:41:50.012448"], ["updated_at", "2019-12-11 23:41:50.012448"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.014464"], ["updated_at", "2019-12-11 23:41:50.014464"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1712], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2014], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2014], ["room_id", 1712], ["created_at", "2019-12-11 23:41:50.018173"], ["updated_at", "2019-12-11 23:41:50.018173"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2014], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2014], ["id", 946], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$cp4gO6LTcnTZZhwCN4ZI1.yJoSukMRMuZa.nbPKBaIi28kfcgYU0q"], ["created_at", "2019-12-11 23:41:50.030339"], ["updated_at", "2019-12-11 23:41:50.030339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.032740"], ["updated_at", "2019-12-11 23:41:50.032740"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1713], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2015], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2015], ["room_id", 1713], ["created_at", "2019-12-11 23:41:50.036837"], ["updated_at", "2019-12-11 23:41:50.036837"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2015], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$afdZcqDM3bx5PTTy/ZmBOOq9N45Sp1qpMVyRsJvy5HgE7lqIPzh6C"], ["created_at", "2019-12-11 23:41:50.080435"], ["updated_at", "2019-12-11 23:41:50.080435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.082822"], ["updated_at", "2019-12-11 23:41:50.082822"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1714"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1714], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1714')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Completed 200 OK in 112ms (Views: 78.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rtmzb9m0KgWbKT9K4HN2IO8MKC2uoPERT3BntgHK.lsA7Ppxm3abe"], ["created_at", "2019-12-11 23:41:50.203879"], ["updated_at", "2019-12-11 23:41:50.203879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.206108"], ["updated_at", "2019-12-11 23:41:50.206108"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1715], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2017], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2017], ["room_id", 1715], ["created_at", "2019-12-11 23:41:50.210777"], ["updated_at", "2019-12-11 23:41:50.210777"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1715"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1715], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1715')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0I6N8jvjaABBIIjSmt5/pOK8kNrD13FfrqQ83s1mCVpQnfHp9Vgai"], ["created_at", "2019-12-11 23:41:50.221364"], ["updated_at", "2019-12-11 23:41:50.221364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.223665"], ["updated_at", "2019-12-11 23:41:50.223665"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1716], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2018], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2018], ["room_id", 1716], ["created_at", "2019-12-11 23:41:50.228581"], ["updated_at", "2019-12-11 23:41:50.228581"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1716"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1716], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1716')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$atKv9szKQyuCFoBgqWKG4ekrd7v1CxRra19dkY6QTgqrKntcFgwpW"], ["created_at", "2019-12-11 23:41:50.239782"], ["updated_at", "2019-12-11 23:41:50.239782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.242210"], ["updated_at", "2019-12-11 23:41:50.242210"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1717], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2019], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2019], ["room_id", 1717], ["created_at", "2019-12-11 23:41:50.246796"], ["updated_at", "2019-12-11 23:41:50.246796"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1717"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1717], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1717')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sSuZ19b1qfmL.RrS0MbfT.1iGdxEFzGywSle7IsVoX5AbSyMIXUSS"], ["created_at", "2019-12-11 23:41:50.256714"], ["updated_at", "2019-12-11 23:41:50.256714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.259132"], ["updated_at", "2019-12-11 23:41:50.259132"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1718], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2020], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2020], ["room_id", 1718], ["created_at", "2019-12-11 23:41:50.263470"], ["updated_at", "2019-12-11 23:41:50.263470"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1718"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1718], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1718')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 109ms (Views: 77.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$1mTQUZmFSUHXlr.kZ3ys2uagm.1BXCOinVQHK/OBjXVf4aMTD8M2S"], ["created_at", "2019-12-11 23:41:50.848270"], ["updated_at", "2019-12-11 23:41:50.848270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.850536"], ["updated_at", "2019-12-11 23:41:50.850536"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.866940"], ["last_sign_in_at", "2019-12-11 23:41:50.866940"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.867793"], ["id", 2021]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1719"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1719], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2021], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2021], ["room_id", 1719], ["created_at", "2019-12-11 23:41:50.877344"], ["updated_at", "2019-12-11 23:41:50.877344"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1719], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$L07EBDI3JohyEb0g8CeVC.8HakV9ri6PK.bxYTqBucGe2zfZpHRvO"], ["created_at", "2019-12-11 23:41:50.886638"], ["updated_at", "2019-12-11 23:41:50.886638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.889085"], ["updated_at", "2019-12-11 23:41:50.889085"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.891600"], ["last_sign_in_at", "2019-12-11 23:41:50.891600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.892374"], ["id", 2022]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1720"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1720], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2022], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2022], ["room_id", 1720], ["created_at", "2019-12-11 23:41:50.897203"], ["updated_at", "2019-12-11 23:41:50.897203"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$CSN.X86X5t0SzWoLlPQqBeKFyLcFCeZQTpOZ.0hOqmeI8x1Pyr2sO"], ["created_at", "2019-12-11 23:41:50.906092"], ["updated_at", "2019-12-11 23:41:50.906092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.908425"], ["updated_at", "2019-12-11 23:41:50.908425"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.912182"], ["last_sign_in_at", "2019-12-11 23:41:50.912182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.913254"], ["id", 2023]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1721"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1721], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ICCVJL0F4tDtvBPJFvFqUuHCS4VYZ8wCaxEs9p.nCnjnaAB2ZJaFi"], ["created_at", "2019-12-11 23:41:50.922109"], ["updated_at", "2019-12-11 23:41:50.922109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.924548"], ["updated_at", "2019-12-11 23:41:50.924548"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.927650"], ["last_sign_in_at", "2019-12-11 23:41:50.927650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.928293"], ["id", 2024]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1722"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$SdPJQeY3tMdXGumI4CQLuOz9yBxjZmOONcD6voGIkA4Za//Sqsvza"], ["created_at", "2019-12-11 23:41:50.939024"], ["updated_at", "2019-12-11 23:41:50.939024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.941502"], ["updated_at", "2019-12-11 23:41:50.941502"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1723], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2025], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2025], ["room_id", 1723], ["created_at", "2019-12-11 23:41:50.946177"], ["updated_at", "2019-12-11 23:41:50.946177"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1723” for 127.0.0.1 at 2019-12-11 20:41:50 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.948790"], ["last_sign_in_at", "2019-12-11 23:41:50.948790"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.949346"], ["id", 2025]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1723"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1723], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1723')[0m
Rendered appointments/show.html.erb within layouts/application (21.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 408ms (Views: 389.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$PgPNa8OVd20sV8ZuJcvkW.OUj2TvYAaCy96VDNIu7Wz5SXSVjmaNO"], ["created_at", "2019-12-11 23:41:51.367756"], ["updated_at", "2019-12-11 23:41:51.367756"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.370112"], ["updated_at", "2019-12-11 23:41:51.370112"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1724], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2026], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2026], ["room_id", 1724], ["created_at", "2019-12-11 23:41:51.374136"], ["updated_at", "2019-12-11 23:41:51.374136"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1724], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2026], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2026], ["room_id", 1724], ["created_at", "2019-12-11 23:41:51.378683"], ["updated_at", "2019-12-11 23:41:51.378683"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.381087"], ["last_sign_in_at", "2019-12-11 23:41:51.381087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.381576"], ["id", 2026]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2026]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 4.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VbJ3fu0zlHJ868WegLCHHOZ7jfQImhxCYcpWplvyX/zIbRO16o1va"], ["created_at", "2019-12-11 23:41:51.411433"], ["updated_at", "2019-12-11 23:41:51.411433"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.413478"], ["updated_at", "2019-12-11 23:41:51.413478"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1725], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2027], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2027], ["room_id", 1725], ["created_at", "2019-12-11 23:41:51.416979"], ["updated_at", "2019-12-11 23:41:51.416979"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1725], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2027], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2027], ["room_id", 1725], ["created_at", "2019-12-11 23:41:51.420434"], ["updated_at", "2019-12-11 23:41:51.420434"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.422596"], ["last_sign_in_at", "2019-12-11 23:41:51.422596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.423063"], ["id", 2027]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2027]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$jsLDskfa9r046JvrRQQ37e0MvFhNTH5FqPDN4zPgT9QGVmFwEVCce"], ["created_at", "2019-12-11 23:41:51.435951"], ["updated_at", "2019-12-11 23:41:51.435951"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.437950"], ["updated_at", "2019-12-11 23:41:51.437950"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1726], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2028], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2028], ["room_id", 1726], ["created_at", "2019-12-11 23:41:51.441772"], ["updated_at", "2019-12-11 23:41:51.441772"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/959” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.444246"], ["last_sign_in_at", "2019-12-11 23:41:51.444246"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.444792"], ["id", 2028]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"959"}
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 959], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 959]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mAppointment Load (0.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$me9iDaHbzdQqclWmJmZ9OuIOgqUZLFp.Mf/Ptl3f13NlOblBN2tEi"], ["created_at", "2019-12-11 23:41:51.457531"], ["updated_at", "2019-12-11 23:41:51.457531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.460464"], ["last_sign_in_at", "2019-12-11 23:41:51.460464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.461090"], ["id", 2029]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 36ms (Views: 19.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SSzsCeGY8Elg6zfSngU7Q.d4yVmKLBAHEdUPvF8nGm2EQmqCzRH1u"], ["created_at", "2019-12-11 23:41:51.506403"], ["updated_at", "2019-12-11 23:41:51.506403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.508952"], ["updated_at", "2019-12-11 23:41:51.508952"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1727], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2030], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2030], ["room_id", 1727], ["created_at", "2019-12-11 23:41:51.512991"], ["updated_at", "2019-12-11 23:41:51.512991"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1727], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2030], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2030], ["room_id", 1727], ["created_at", "2019-12-11 23:41:51.516882"], ["updated_at", "2019-12-11 23:41:51.516882"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.519414"], ["last_sign_in_at", "2019-12-11 23:41:51.519414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.520177"], ["id", 2030]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1727], ["LIMIT", 1]] [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2030], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2030], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.3ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6MvWHfTwQmByDxwnHY6O4e8ZYG2O/lBzuwYMHxumSRxTr.rgrmRje"], ["created_at", "2019-12-11 23:41:51.534580"], ["updated_at", "2019-12-11 23:41:51.534580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.536841"], ["updated_at", "2019-12-11 23:41:51.536841"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1728], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2031], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2031], ["room_id", 1728], ["created_at", "2019-12-11 23:41:51.540705"], ["updated_at", "2019-12-11 23:41:51.540705"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1728], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2031], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2031], ["room_id", 1728], ["created_at", "2019-12-11 23:41:51.545180"], ["updated_at", "2019-12-11 23:41:51.545180"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.547666"], ["last_sign_in_at", "2019-12-11 23:41:51.547666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.548188"], ["id", 2031]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1728], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2031], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2031], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$H/JHEn6WWrYKu/W2fUIJcepHaX2JMyg49Sdq9Fyy.pxwDjhYLfyRu"], ["created_at", "2019-12-11 23:41:51.562831"], ["updated_at", "2019-12-11 23:41:51.562831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.565106"], ["updated_at", "2019-12-11 23:41:51.565106"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1729], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2032], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2032], ["room_id", 1729], ["created_at", "2019-12-11 23:41:51.568925"], ["updated_at", "2019-12-11 23:41:51.568925"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1729], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2032], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2032], ["room_id", 1729], ["created_at", "2019-12-11 23:41:51.572601"], ["updated_at", "2019-12-11 23:41:51.572601"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.574839"], ["last_sign_in_at", "2019-12-11 23:41:51.574839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.575493"], ["id", 2032]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PmZbdfxEg45iTSEH9zf0p.OEvXjgVsB52zthTQ3rS6x6mbHIRbOFq"], ["created_at", "2019-12-11 23:41:51.586569"], ["updated_at", "2019-12-11 23:41:51.586569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.589073"], ["updated_at", "2019-12-11 23:41:51.589073"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1730], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2033], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2033], ["room_id", 1730], ["created_at", "2019-12-11 23:41:51.593730"], ["updated_at", "2019-12-11 23:41:51.593730"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1730], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2033], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2033], ["room_id", 1730], ["created_at", "2019-12-11 23:41:51.597939"], ["updated_at", "2019-12-11 23:41:51.597939"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.600344"], ["last_sign_in_at", "2019-12-11 23:41:51.600344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.600920"], ["id", 2033]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G4l19uDKHu86RKPQQUA8COmutppJiJGJbAF8vMgB/QfYbRWP9aYm."], ["created_at", "2019-12-11 23:41:51.614247"], ["updated_at", "2019-12-11 23:41:51.614247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.616752"], ["last_sign_in_at", "2019-12-11 23:41:51.616752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.617327"], ["id", 2034]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 65ms (Views: 48.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vr1mo71GfJwy2Z9Gd40p7urcbHGIDIb7jK9xXVIta4sYa7TWJiHqO"], ["created_at", "2019-12-11 23:41:51.695010"], ["updated_at", "2019-12-11 23:41:51.695010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.697324"], ["last_sign_in_at", "2019-12-11 23:41:51.697324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.697819"], ["id", 2035]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YbCy7snBT0UCcV3ifZzYyuqIFxats.bgX0/3nqWrKNODIlkBbH6ou"], ["created_at", "2019-12-11 23:41:51.707969"], ["updated_at", "2019-12-11 23:41:51.707969"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.710917"], ["last_sign_in_at", "2019-12-11 23:41:51.710917"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.711452"], ["id", 2036]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9ycc.rPvi3xWpuGRn0GmGusACLMUx9ZsFby5YWrM7tUz3FQif1/4W"], ["created_at", "2019-12-11 23:41:51.740114"], ["updated_at", "2019-12-11 23:41:51.740114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.742748"], ["last_sign_in_at", "2019-12-11 23:41:51.742748"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.743272"], ["id", 2037]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dEFCijXHgK97pOK/KwBu/up58vGajS50WuWSGIZzgHDQIwG4pvImG"], ["created_at", "2019-12-11 23:41:51.762947"], ["updated_at", "2019-12-11 23:41:51.762947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.765206"], ["updated_at", "2019-12-11 23:41:51.765206"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1731” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.767222"], ["last_sign_in_at", "2019-12-11 23:41:51.767222"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.767770"], ["id", 2038]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1731"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1731], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$58dysDsspqGXobqNaTaZFeKSGoWggaPREj.dESnuIT7GM.eAmEi/a"], ["created_at", "2019-12-11 23:41:51.795320"], ["updated_at", "2019-12-11 23:41:51.795320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.797619"], ["updated_at", "2019-12-11 23:41:51.797619"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1732” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.799792"], ["last_sign_in_at", "2019-12-11 23:41:51.799792"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.800399"], ["id", 2039]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1732"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1732], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.810015"], ["updated_at", "2019-12-11 23:41:51.810015"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1733” for 127.0.0.1 at 2019-12-11 20:41:51 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1733"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F9ccpGB8MM8yVXQzEtqPVeMoaVxXrtyMrGBO2NePhn9m23g3TT4cu"], ["created_at", "2019-12-11 23:41:51.820410"], ["updated_at", "2019-12-11 23:41:51.820410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.822604"], ["updated_at", "2019-12-11 23:41:51.822604"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1734/edit” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.824668"], ["last_sign_in_at", "2019-12-11 23:41:51.824668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.825215"], ["id", 2040]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1734"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1734], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (9.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 28ms (Views: 10.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cat3Dv/1AtpcZqDc5W1fHOTIOtS9TH3CmhrJPW9oVlD58BZ5a9xSu"], ["created_at", "2019-12-11 23:41:51.861972"], ["updated_at", "2019-12-11 23:41:51.861972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.864256"], ["updated_at", "2019-12-11 23:41:51.864256"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1735/edit” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.866307"], ["last_sign_in_at", "2019-12-11 23:41:51.866307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.866913"], ["id", 2041]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1735"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1735], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.878327"], ["updated_at", "2019-12-11 23:41:51.878327"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1736” for 127.0.0.1 at 2019-12-11 20:41:51 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1736"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gsT1CIsiMhJfEXNB7yZKJ.1yAGndDFhxsW57Hz1e/a2NnaQkpkY8."], ["created_at", "2019-12-11 23:41:51.890300"], ["updated_at", "2019-12-11 23:41:51.890300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.893310"], ["last_sign_in_at", "2019-12-11 23:41:51.893310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.893864"], ["id", 2042]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.897461"], ["updated_at", "2019-12-11 23:41:51.897461"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$enJBKqAYB9B4hWcNBt49kuPPpvOBHUUhHQjudJkmfI5ZoYu6TFPkq"], ["created_at", "2019-12-11 23:41:51.905864"], ["updated_at", "2019-12-11 23:41:51.905864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.908442"], ["last_sign_in_at", "2019-12-11 23:41:51.908442"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.909167"], ["id", 2043]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.912665"], ["updated_at", "2019-12-11 23:41:51.912665"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rpHA92uZkV5WKZwmXFR9ruzmTaDx8/NfEhifVV4SlCOAy.rchDPwq"], ["created_at", "2019-12-11 23:41:51.920994"], ["updated_at", "2019-12-11 23:41:51.920994"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.923566"], ["last_sign_in_at", "2019-12-11 23:41:51.923566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.924052"], ["id", 2044]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CCOvhYktp7hzq4xk1/M8dueJHwldgvEhG6maivkGIJ2QvxyxORN/e"], ["created_at", "2019-12-11 23:41:51.935510"], ["updated_at", "2019-12-11 23:41:51.935510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.938134"], ["last_sign_in_at", "2019-12-11 23:41:51.938134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.938664"], ["id", 2045]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wsWDErmd8de4MECDWoukVuMvflwxlcjopejhyNqeXsbMPpGNq./gu"], ["created_at", "2019-12-11 23:41:51.950083"], ["updated_at", "2019-12-11 23:41:51.950083"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.952612"], ["last_sign_in_at", "2019-12-11 23:41:51.952612"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.953106"], ["id", 2046]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PCCbvD22jr223ceMdXVGQ.x1RSY4di5i.wwcnteCB5mruRnq3ZT5u"], ["created_at", "2019-12-11 23:41:51.964075"], ["updated_at", "2019-12-11 23:41:51.964075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.966576"], ["updated_at", "2019-12-11 23:41:51.966576"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1739” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.969060"], ["last_sign_in_at", "2019-12-11 23:41:51.969060"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.969642"], ["id", 2047]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1739"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1739], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:41:51.973890"], ["id", 1739]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1739 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JjKRJR.8vCD.s6MN5bnXduYu6E6UCt1SXRcDxfLSAtjJmGwowPiHi"], ["created_at", "2019-12-11 23:41:51.983593"], ["updated_at", "2019-12-11 23:41:51.983593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.986046"], ["updated_at", "2019-12-11 23:41:51.986046"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1740” for 127.0.0.1 at 2019-12-11 20:41:51 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.988658"], ["last_sign_in_at", "2019-12-11 23:41:51.988658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.989241"], ["id", 2048]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1740"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1740], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:41:51.993979"], ["id", 1740]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1740 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7uj1y84KygiuxSNbh7QYQOeiN8wYObDqtKZMnu9vZgt.6vRpXVfGC"], ["created_at", "2019-12-11 23:41:52.002950"], ["updated_at", "2019-12-11 23:41:52.002950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.005430"], ["updated_at", "2019-12-11 23:41:52.005430"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1741” for 127.0.0.1 at 2019-12-11 20:41:52 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.008135"], ["last_sign_in_at", "2019-12-11 23:41:52.008135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.008935"], ["id", 2049]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1741"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1741], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5tgSB1hg/EXvzVSiQQjudOHjl7P2rZdwW0vCRRfjTWw2byilQl4Yq"], ["created_at", "2019-12-11 23:41:52.024227"], ["updated_at", "2019-12-11 23:41:52.024227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.026948"], ["updated_at", "2019-12-11 23:41:52.026948"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1742” for 127.0.0.1 at 2019-12-11 20:41:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.029480"], ["last_sign_in_at", "2019-12-11 23:41:52.029480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.030022"], ["id", 2050]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1742"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1742], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$puAW4OM3q/dIwZ3lmEdKj.fPmGr6XdB4M2YCj3PmvwXo8GQ.ejyLS"], ["created_at", "2019-12-11 23:41:52.044759"], ["updated_at", "2019-12-11 23:41:52.044759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.047409"], ["last_sign_in_at", "2019-12-11 23:41:52.047409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.047887"], ["id", 2051]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U07F2ABqaV1QpZK55RN/Jui5VjccJYLeHBn.s8TSlk5WazuyYHHh2"], ["created_at", "2019-12-11 23:41:52.057765"], ["updated_at", "2019-12-11 23:41:52.057765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.060562"], ["updated_at", "2019-12-11 23:41:52.060562"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1743” for 127.0.0.1 at 2019-12-11 20:41:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.062595"], ["last_sign_in_at", "2019-12-11 23:41:52.062595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.063107"], ["id", 2052]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1743"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1743], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1743]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PqXrIJrUVYqR3IanHiWAdeocNL.LEErxsw5NCnD7D3otsMYn1dCqq"], ["created_at", "2019-12-11 23:41:52.074108"], ["updated_at", "2019-12-11 23:41:52.074108"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.077045"], ["updated_at", "2019-12-11 23:41:52.077045"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1744” for 127.0.0.1 at 2019-12-11 20:41:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.079843"], ["last_sign_in_at", "2019-12-11 23:41:52.079843"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.080537"], ["id", 2053]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1744"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1744], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1744]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CkQ87131FDKCsCAXf6wPtuVOTslu51.06fPyGQPxjsQIRszCTzz9q"], ["created_at", "2019-12-11 23:41:52.092578"], ["updated_at", "2019-12-11 23:41:52.092578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.095026"], ["updated_at", "2019-12-11 23:41:52.095026"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1745” for 127.0.0.1 at 2019-12-11 20:41:52 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.097068"], ["last_sign_in_at", "2019-12-11 23:41:52.097068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.097621"], ["id", 2054]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1745"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gTFyArrqDImi.R/mK5UYfOPF3GNjNSeuoyIVWGrHukWNEx2EaAHVS"], ["created_at", "2019-12-11 23:41:52.106458"], ["updated_at", "2019-12-11 23:41:52.106458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.108927"], ["updated_at", "2019-12-11 23:41:52.108927"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1746” for 127.0.0.1 at 2019-12-11 20:41:52 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.111214"], ["last_sign_in_at", "2019-12-11 23:41:52.111214"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.111729"], ["id", 2055]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1746"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (7.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (3.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$tVyZioaOHtghlabwNqQTNeSOGpvDOs1.MNLfUw5qzZV93e59hIPPW"], ["created_at", "2019-12-11 23:43:23.698961"], ["updated_at", "2019-12-11 23:43:23.698961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (3.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.711006"], ["updated_at", "2019-12-11 23:43:23.711006"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2056], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.3ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 175ms (Views: 115.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$tbe.2F52BNHi6MOKwyzWneHSwpJbBcbKJsEhAmeBw/BEpnSH9HPjG"], ["created_at", "2019-12-11 23:43:23.899205"], ["updated_at", "2019-12-11 23:43:23.899205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.901501"], ["updated_at", "2019-12-11 23:43:23.901501"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (2.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1748], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2057], ["LIMIT", 1]]
[1m[35mSQL (4.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2057], ["room_id", 1748], ["created_at", "2019-12-11 23:43:23.945291"], ["updated_at", "2019-12-11 23:43:23.945291"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2057], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
[1m[36mAppointment Exists (7.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2057], ["id", 968], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$2B/F.bmNE0/wIlxl3YFRlObrcEOM7D5bdg4DE6.BSNSbp5L.lWv0y"], ["created_at", "2019-12-11 23:43:23.972254"], ["updated_at", "2019-12-11 23:43:23.972254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.974858"], ["updated_at", "2019-12-11 23:43:23.974858"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1749], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2058], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2058], ["room_id", 1749], ["created_at", "2019-12-11 23:43:23.979696"], ["updated_at", "2019-12-11 23:43:23.979696"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2058], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2058], ["id", 969], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IffENcqxl8Jj4.aOC5VCleRkf1n.rOsfeopzjZKbgMSCWMq5pyvHy"], ["created_at", "2019-12-11 23:43:23.992228"], ["updated_at", "2019-12-11 23:43:23.992228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.994629"], ["updated_at", "2019-12-11 23:43:23.994629"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1750], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2059], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2059], ["room_id", 1750], ["created_at", "2019-12-11 23:43:23.999455"], ["updated_at", "2019-12-11 23:43:23.999455"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2059], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2059], ["id", 970], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$0CetwsF9rbg8tiv5JDgKQuMPtnmx3.RN3JX0EIfd4VcMzIHsJKu9m"], ["created_at", "2019-12-11 23:43:24.012878"], ["updated_at", "2019-12-11 23:43:24.012878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.015215"], ["updated_at", "2019-12-11 23:43:24.015215"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1751"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1751], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1751')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Completed 200 OK in 111ms (Views: 76.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$.EKi8w9cuzjK7wszXnTKfOWMBJEaDUL85Mdx5YYLiPFeNVtZMM9oO"], ["created_at", "2019-12-11 23:43:24.135899"], ["updated_at", "2019-12-11 23:43:24.135899"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.138235"], ["updated_at", "2019-12-11 23:43:24.138235"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1752], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2061], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2061], ["room_id", 1752], ["created_at", "2019-12-11 23:43:24.142771"], ["updated_at", "2019-12-11 23:43:24.142771"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1752"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1752], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1752')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZDde.rXd/QGGeOdvbmp2sO8tGvNSCdcCyO.Y3gJGx6zSN3OuJ6cni"], ["created_at", "2019-12-11 23:43:24.153928"], ["updated_at", "2019-12-11 23:43:24.153928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.156324"], ["updated_at", "2019-12-11 23:43:24.156324"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1753], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2062], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2062], ["room_id", 1753], ["created_at", "2019-12-11 23:43:24.160260"], ["updated_at", "2019-12-11 23:43:24.160260"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1753"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1753], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1753')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$00DXzQewUEoa3B4YChnZSOD8R85LzSbw4Ajz8YCUsRy2.0G2jzaB6"], ["created_at", "2019-12-11 23:43:24.172223"], ["updated_at", "2019-12-11 23:43:24.172223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.174562"], ["updated_at", "2019-12-11 23:43:24.174562"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1754], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2063], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2063], ["room_id", 1754], ["created_at", "2019-12-11 23:43:24.178516"], ["updated_at", "2019-12-11 23:43:24.178516"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1754"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1754], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1754')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$52o2gCH4AjrqKwirOP.EeenlpykmKIbvZH9OOhU7gGiHxZm9OVkhW"], ["created_at", "2019-12-11 23:43:24.188793"], ["updated_at", "2019-12-11 23:43:24.188793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.190973"], ["updated_at", "2019-12-11 23:43:24.190973"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1755], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2064], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2064], ["room_id", 1755], ["created_at", "2019-12-11 23:43:24.194768"], ["updated_at", "2019-12-11 23:43:24.194768"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1755"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1755], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1755')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 112ms (Views: 79.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fIAsiDOWNyrPWTuIfvGPbOqk46/WT8IQrT0G/aOhoequHxP4rtEhy"], ["created_at", "2019-12-11 23:43:24.785537"], ["updated_at", "2019-12-11 23:43:24.785537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.787934"], ["updated_at", "2019-12-11 23:43:24.787934"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.809323"], ["last_sign_in_at", "2019-12-11 23:43:24.809323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.810022"], ["id", 2065]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1756"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1756], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2065], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2065], ["room_id", 1756], ["created_at", "2019-12-11 23:43:24.818343"], ["updated_at", "2019-12-11 23:43:24.818343"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1756], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3nlNmXMO976dDwpSOnCSEegU9/giO.5jZcoMeLRtufraZpPhYp3oy"], ["created_at", "2019-12-11 23:43:24.828416"], ["updated_at", "2019-12-11 23:43:24.828416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.831052"], ["updated_at", "2019-12-11 23:43:24.831052"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.833788"], ["last_sign_in_at", "2019-12-11 23:43:24.833788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.834378"], ["id", 2066]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1757"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1757], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2066], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2066], ["room_id", 1757], ["created_at", "2019-12-11 23:43:24.839662"], ["updated_at", "2019-12-11 23:43:24.839662"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KpWvSGDi4YjX9yEd6AoCyOBZ/aLbtUhsGz07ogpUQBkAeMlQRgoBe"], ["created_at", "2019-12-11 23:43:24.849277"], ["updated_at", "2019-12-11 23:43:24.849277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.851463"], ["updated_at", "2019-12-11 23:43:24.851463"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.853949"], ["last_sign_in_at", "2019-12-11 23:43:24.853949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.854480"], ["id", 2067]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1758"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1758], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7njaLImn0vyCZwHkUvHCB.iQn9DUC7rZwTTOfJOK3sbArLQucOQ3e"], ["created_at", "2019-12-11 23:43:24.864024"], ["updated_at", "2019-12-11 23:43:24.864024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.866401"], ["updated_at", "2019-12-11 23:43:24.866401"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.868870"], ["last_sign_in_at", "2019-12-11 23:43:24.868870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.869401"], ["id", 2068]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1759"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$lXdOERelvxWjwutetRGIceST8YAHigGBSNz0bgSvb2xuo/RP6gOEO"], ["created_at", "2019-12-11 23:43:24.879823"], ["updated_at", "2019-12-11 23:43:24.879823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.882176"], ["updated_at", "2019-12-11 23:43:24.882176"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1760], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2069], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2069], ["room_id", 1760], ["created_at", "2019-12-11 23:43:24.886497"], ["updated_at", "2019-12-11 23:43:24.886497"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1760” for 127.0.0.1 at 2019-12-11 20:43:24 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.888990"], ["last_sign_in_at", "2019-12-11 23:43:24.888990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.889539"], ["id", 2069]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1760"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1760], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1760')[0m
Rendered appointments/show.html.erb within layouts/application (22.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 401ms (Views: 383.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3fJdSuVFEeTYGyrBRhFx3eEVr4SLij6mmKmUDZH5C2dwJFN4ih9KW"], ["created_at", "2019-12-11 23:43:25.301136"], ["updated_at", "2019-12-11 23:43:25.301136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.304116"], ["updated_at", "2019-12-11 23:43:25.304116"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1761], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2070], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2070], ["room_id", 1761], ["created_at", "2019-12-11 23:43:25.308071"], ["updated_at", "2019-12-11 23:43:25.308071"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1761], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2070], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2070], ["room_id", 1761], ["created_at", "2019-12-11 23:43:25.312098"], ["updated_at", "2019-12-11 23:43:25.312098"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.315083"], ["last_sign_in_at", "2019-12-11 23:43:25.315083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.315605"], ["id", 2070]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2070]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 4.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$WE.W4LkQY6ydMDYwN62m6.EENZ/xas.qIs8RGAeizz/BKHHfvoWN2"], ["created_at", "2019-12-11 23:43:25.346113"], ["updated_at", "2019-12-11 23:43:25.346113"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.348395"], ["updated_at", "2019-12-11 23:43:25.348395"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1762], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2071], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2071], ["room_id", 1762], ["created_at", "2019-12-11 23:43:25.352137"], ["updated_at", "2019-12-11 23:43:25.352137"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1762], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2071], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2071], ["room_id", 1762], ["created_at", "2019-12-11 23:43:25.356008"], ["updated_at", "2019-12-11 23:43:25.356008"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.358508"], ["last_sign_in_at", "2019-12-11 23:43:25.358508"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.359038"], ["id", 2071]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2071]] Rendered appointments/my_appointments.html.erb within layouts/application (2.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iIK7EqYtTvEthGVOlX8VFOm7hdxyjgidiM5JvDFPzzW3rPGovpMke"], ["created_at", "2019-12-11 23:43:25.373423"], ["updated_at", "2019-12-11 23:43:25.373423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.375532"], ["updated_at", "2019-12-11 23:43:25.375532"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1763], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2072], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2072], ["room_id", 1763], ["created_at", "2019-12-11 23:43:25.379940"], ["updated_at", "2019-12-11 23:43:25.379940"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/982” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.382449"], ["last_sign_in_at", "2019-12-11 23:43:25.382449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.382968"], ["id", 2072]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"982"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 982], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 982]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MYSOZcp.wJGkWBOoPJQGsetQY3msM2HhVn/vg0eFZpJhOtKcPhTMK"], ["created_at", "2019-12-11 23:43:25.397863"], ["updated_at", "2019-12-11 23:43:25.397863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.400496"], ["last_sign_in_at", "2019-12-11 23:43:25.400496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.401077"], ["id", 2073]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 37ms (Views: 19.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yhaRylNHlKfitcD4jbqu.O6JxHsHV3xzdq.3/8gVHAn9WXo1zLz9i"], ["created_at", "2019-12-11 23:43:25.448061"], ["updated_at", "2019-12-11 23:43:25.448061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.450449"], ["updated_at", "2019-12-11 23:43:25.450449"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1764], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2074], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2074], ["room_id", 1764], ["created_at", "2019-12-11 23:43:25.454345"], ["updated_at", "2019-12-11 23:43:25.454345"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1764], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2074], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2074], ["room_id", 1764], ["created_at", "2019-12-11 23:43:25.458662"], ["updated_at", "2019-12-11 23:43:25.458662"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.461110"], ["last_sign_in_at", "2019-12-11 23:43:25.461110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.461672"], ["id", 2074]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1764], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2074], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2074], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mptA4VwyfVHVyMqakxwSyuUkwrk5c3mfmRNaZD25T.jdf4dvVgWRS"], ["created_at", "2019-12-11 23:43:25.476126"], ["updated_at", "2019-12-11 23:43:25.476126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.478564"], ["updated_at", "2019-12-11 23:43:25.478564"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1765], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2075], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2075], ["room_id", 1765], ["created_at", "2019-12-11 23:43:25.482882"], ["updated_at", "2019-12-11 23:43:25.482882"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1765], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2075], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2075], ["room_id", 1765], ["created_at", "2019-12-11 23:43:25.487051"], ["updated_at", "2019-12-11 23:43:25.487051"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.489705"], ["last_sign_in_at", "2019-12-11 23:43:25.489705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.490236"], ["id", 2075]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1765], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2075], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2075], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S.KPbi66u.dqJN8ot9I3yuT8vo502oNYDUvKvGkHuZ/XkPbK1TFIK"], ["created_at", "2019-12-11 23:43:25.505587"], ["updated_at", "2019-12-11 23:43:25.505587"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.507920"], ["updated_at", "2019-12-11 23:43:25.507920"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1766], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2076], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2076], ["room_id", 1766], ["created_at", "2019-12-11 23:43:25.512039"], ["updated_at", "2019-12-11 23:43:25.512039"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1766], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2076], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2076], ["room_id", 1766], ["created_at", "2019-12-11 23:43:25.516411"], ["updated_at", "2019-12-11 23:43:25.516411"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.518829"], ["last_sign_in_at", "2019-12-11 23:43:25.518829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.519330"], ["id", 2076]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aUTZ2yf3BY58l.vU5NCkmuCPmQEGfEJgsvBKsTEKCGGEwL7UnLETu"], ["created_at", "2019-12-11 23:43:25.530930"], ["updated_at", "2019-12-11 23:43:25.530930"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.533460"], ["updated_at", "2019-12-11 23:43:25.533460"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1767], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2077], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2077], ["room_id", 1767], ["created_at", "2019-12-11 23:43:25.537475"], ["updated_at", "2019-12-11 23:43:25.537475"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1767], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2077], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2077], ["room_id", 1767], ["created_at", "2019-12-11 23:43:25.541523"], ["updated_at", "2019-12-11 23:43:25.541523"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.543934"], ["last_sign_in_at", "2019-12-11 23:43:25.543934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.544481"], ["id", 2077]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FGQk74cbUesSm5uQVllfYunrDJp1CEvqEd6LbAYoQ.sabIKZh9G/G"], ["created_at", "2019-12-11 23:43:25.558462"], ["updated_at", "2019-12-11 23:43:25.558462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.560910"], ["last_sign_in_at", "2019-12-11 23:43:25.560910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.561447"], ["id", 2078]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 64ms (Views: 48.0ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0bNuzlpwWIYx03KbProslePQ9OVYFKv8lMIBHN/vPJXt8BfG9v1L2"], ["created_at", "2019-12-11 23:43:25.637610"], ["updated_at", "2019-12-11 23:43:25.637610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.639944"], ["last_sign_in_at", "2019-12-11 23:43:25.639944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.640502"], ["id", 2079]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3dY3N/iWrtPH/zAnlWVfheiD2RPln2ZajZHLg.laK5YZ5HlMZo92u"], ["created_at", "2019-12-11 23:43:25.650997"], ["updated_at", "2019-12-11 23:43:25.650997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.653362"], ["last_sign_in_at", "2019-12-11 23:43:25.653362"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.653889"], ["id", 2080]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2TLF395QW7Zlv6Y44PBOe.LbTaqBbHTfQZcNWk2Vj7hgJQl22F11S"], ["created_at", "2019-12-11 23:43:25.683496"], ["updated_at", "2019-12-11 23:43:25.683496"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.685820"], ["last_sign_in_at", "2019-12-11 23:43:25.685820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.686384"], ["id", 2081]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wlskGb007/vNOo7dh9d1HurAYwcV1APw/DvtZ7nVRcHcASHHvY/9G"], ["created_at", "2019-12-11 23:43:25.706114"], ["updated_at", "2019-12-11 23:43:25.706114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.708391"], ["updated_at", "2019-12-11 23:43:25.708391"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1768” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.710576"], ["last_sign_in_at", "2019-12-11 23:43:25.710576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.711101"], ["id", 2082]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1768"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1768], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nYTvHcAzItJEjN8qxkZIp.XrpNQVUMDlWLGd8FUKX5fKBJ0lhT4gC"], ["created_at", "2019-12-11 23:43:25.738607"], ["updated_at", "2019-12-11 23:43:25.738607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.740895"], ["updated_at", "2019-12-11 23:43:25.740895"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1769” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.743008"], ["last_sign_in_at", "2019-12-11 23:43:25.743008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.743573"], ["id", 2083]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1769"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1769], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.753562"], ["updated_at", "2019-12-11 23:43:25.753562"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1770” for 127.0.0.1 at 2019-12-11 20:43:25 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1770"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p9ve4pJB4qVbymbQHPfZyuOwUPz7PWmi/US9ULXBNfa0JVYWd53K6"], ["created_at", "2019-12-11 23:43:25.765240"], ["updated_at", "2019-12-11 23:43:25.765240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.767535"], ["updated_at", "2019-12-11 23:43:25.767535"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1771/edit” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.770064"], ["last_sign_in_at", "2019-12-11 23:43:25.770064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.770845"], ["id", 2084]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1771"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1771], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5v.c7D2oYWmZ8nuk2AKGm.lL4NEjVqc294NN.WiClknZ0RQBqIfsW"], ["created_at", "2019-12-11 23:43:25.800166"], ["updated_at", "2019-12-11 23:43:25.800166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.810123"], ["updated_at", "2019-12-11 23:43:25.810123"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1772/edit” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.812435"], ["last_sign_in_at", "2019-12-11 23:43:25.812435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.812930"], ["id", 2085]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1772"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1772], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.822650"], ["updated_at", "2019-12-11 23:43:25.822650"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1773” for 127.0.0.1 at 2019-12-11 20:43:25 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1773"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yg4PDel.CQQXGRmlJOQ0Zekz.fW6fPZRug0xDZIT22OUljmllYgF6"], ["created_at", "2019-12-11 23:43:25.833699"], ["updated_at", "2019-12-11 23:43:25.833699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.836271"], ["last_sign_in_at", "2019-12-11 23:43:25.836271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.836743"], ["id", 2086]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.839888"], ["updated_at", "2019-12-11 23:43:25.839888"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ICEfl2VlS736GBD/ikrATOXP2fO0gEZD2FMieBUE2Tli.kPVpNCQm"], ["created_at", "2019-12-11 23:43:25.848014"], ["updated_at", "2019-12-11 23:43:25.848014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.850504"], ["last_sign_in_at", "2019-12-11 23:43:25.850504"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.850996"], ["id", 2087]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.853929"], ["updated_at", "2019-12-11 23:43:25.853929"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mpldGIy8KeQ22uw/m5R/6OAdFUgQ7nMfIc.YsqKMxvlggX6cn/Lm6"], ["created_at", "2019-12-11 23:43:25.861649"], ["updated_at", "2019-12-11 23:43:25.861649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.864763"], ["last_sign_in_at", "2019-12-11 23:43:25.864763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.865298"], ["id", 2088]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KOHJeCccQc0MPD4TEegkTOPINms5QAXXnNUkauGnYD0e8hmbsZ8AG"], ["created_at", "2019-12-11 23:43:25.878075"], ["updated_at", "2019-12-11 23:43:25.878075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.881167"], ["last_sign_in_at", "2019-12-11 23:43:25.881167"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.881673"], ["id", 2089]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YcXLGuWSnbF1q4FxDi1yEuxsWI/FtoOGk7ZEraA16bozPC5h9D12m"], ["created_at", "2019-12-11 23:43:25.892095"], ["updated_at", "2019-12-11 23:43:25.892095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.894667"], ["last_sign_in_at", "2019-12-11 23:43:25.894667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.895267"], ["id", 2090]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5ckTz4RcwW6hkJprzB16ae9yEWYWabTT/DBY1AcDHv9izKgXCJqhe"], ["created_at", "2019-12-11 23:43:25.906575"], ["updated_at", "2019-12-11 23:43:25.906575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.908865"], ["updated_at", "2019-12-11 23:43:25.908865"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1776” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.911134"], ["last_sign_in_at", "2019-12-11 23:43:25.911134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.911772"], ["id", 2091]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1776"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1776], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:43:25.916344"], ["id", 1776]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1776 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aAZJjbbf0zngMhySJTMOg.0wKr1SlAf2ukxIEdcBuNZFgv6Pmilde"], ["created_at", "2019-12-11 23:43:25.924473"], ["updated_at", "2019-12-11 23:43:25.924473"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.926774"], ["updated_at", "2019-12-11 23:43:25.926774"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1777” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.929777"], ["last_sign_in_at", "2019-12-11 23:43:25.929777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.930446"], ["id", 2092]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1777"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1777], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:43:25.934413"], ["id", 1777]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1777 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gMsBAjzPCVeuP80LBGPKf.4VLa2XcHrkohlpjbuqr1EEXKHBNHOIi"], ["created_at", "2019-12-11 23:43:25.943760"], ["updated_at", "2019-12-11 23:43:25.943760"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.946564"], ["updated_at", "2019-12-11 23:43:25.946564"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1778” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.949246"], ["last_sign_in_at", "2019-12-11 23:43:25.949246"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.949776"], ["id", 2093]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1778"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1778], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MtB5Qr3HsNTpF1VSlbKRxOtcuYtz6KqTgeMPywZW0fW6K85rrBltG"], ["created_at", "2019-12-11 23:43:25.964247"], ["updated_at", "2019-12-11 23:43:25.964247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.966559"], ["updated_at", "2019-12-11 23:43:25.966559"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1779” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.968994"], ["last_sign_in_at", "2019-12-11 23:43:25.968994"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.969505"], ["id", 2094]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1779"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1779], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p4MeAxyMWQGdQpr5GYPFzOCpvjS//Tnsl5q8CEIX.aGjy4kvHsPQu"], ["created_at", "2019-12-11 23:43:25.983997"], ["updated_at", "2019-12-11 23:43:25.983997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.986567"], ["last_sign_in_at", "2019-12-11 23:43:25.986567"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.987034"], ["id", 2095]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ll9PjBehgMuZYf9WsJBE0eAIMKEWqbjrNHop3h46DwoOv5BmyAK4K"], ["created_at", "2019-12-11 23:43:25.997314"], ["updated_at", "2019-12-11 23:43:25.997314"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.999716"], ["updated_at", "2019-12-11 23:43:25.999716"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1780” for 127.0.0.1 at 2019-12-11 20:43:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.001613"], ["last_sign_in_at", "2019-12-11 23:43:26.001613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.002140"], ["id", 2096]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1780"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1780], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1780]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gy3CDlx8bloh7sDcLaUUh.t5qJ0gFr4UEJ/h7/G9uQ4jWpTra6bfC"], ["created_at", "2019-12-11 23:43:26.013744"], ["updated_at", "2019-12-11 23:43:26.013744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:26.016026"], ["updated_at", "2019-12-11 23:43:26.016026"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1781” for 127.0.0.1 at 2019-12-11 20:43:26 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.018067"], ["last_sign_in_at", "2019-12-11 23:43:26.018067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.018668"], ["id", 2097]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1781"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1781], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1781]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7gyoYEW5tB1pXjiux.VVOucRkbighGKuiCkDnJNES6dWW0hCijWBW"], ["created_at", "2019-12-11 23:43:26.030586"], ["updated_at", "2019-12-11 23:43:26.030586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:26.032811"], ["updated_at", "2019-12-11 23:43:26.032811"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1782” for 127.0.0.1 at 2019-12-11 20:43:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.034648"], ["last_sign_in_at", "2019-12-11 23:43:26.034648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.035133"], ["id", 2098]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1782"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jnWNHpoIE/3.RapjPlfZpu9v8nj7q1gezOmdpWqGfQbdxXDJa6k1u"], ["created_at", "2019-12-11 23:43:26.045391"], ["updated_at", "2019-12-11 23:43:26.045391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:26.048249"], ["updated_at", "2019-12-11 23:43:26.048249"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1783” for 127.0.0.1 at 2019-12-11 20:43:26 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.050553"], ["last_sign_in_at", "2019-12-11 23:43:26.050553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.051131"], ["id", 2099]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1783"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KFkGMY7zt4CSzahYdmyp0uJzoTaTuMdUvRShb/pF5910pblti39nq"], ["created_at", "2019-12-11 23:58:15.517343"], ["updated_at", "2019-12-11 23:58:15.517343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.527978"], ["updated_at", "2019-12-11 23:58:15.527978"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2100], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 184ms (Views: 122.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$CujsP1KmQ6MW/iGLh22pJ.3.x3ZritIK4qPIzwuL3L.jbJWTnZBuO"], ["created_at", "2019-12-11 23:58:15.722572"], ["updated_at", "2019-12-11 23:58:15.722572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.726053"], ["updated_at", "2019-12-11 23:58:15.726053"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1785], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2101], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2101], ["room_id", 1785], ["created_at", "2019-12-11 23:58:15.770600"], ["updated_at", "2019-12-11 23:58:15.770600"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2101], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.1ms)
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2101], ["id", 991], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$DYfnMBWuGsI8YmsiRCu01.IJwKD62zC8rUiEbqxVdCjcCUHtqa22u"], ["created_at", "2019-12-11 23:58:15.788703"], ["updated_at", "2019-12-11 23:58:15.788703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.791451"], ["updated_at", "2019-12-11 23:58:15.791451"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1786], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2102], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2102], ["room_id", 1786], ["created_at", "2019-12-11 23:58:15.797852"], ["updated_at", "2019-12-11 23:58:15.797852"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2102], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2102], ["id", 992], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$KOwNnIJGK10pDswZ7lqNFu4BllIb2qWoyK9WmZCBOMyw2Vt3B46yC"], ["created_at", "2019-12-11 23:58:15.811348"], ["updated_at", "2019-12-11 23:58:15.811348"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.813845"], ["updated_at", "2019-12-11 23:58:15.813845"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1787], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2103], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2103], ["room_id", 1787], ["created_at", "2019-12-11 23:58:15.818203"], ["updated_at", "2019-12-11 23:58:15.818203"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2103], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2103], ["id", 993], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$kVSxyCTgEAk01hXmwMQFEOQDrciI6moknrWauONYedn1sV8.4vLGG"], ["created_at", "2019-12-11 23:58:15.833182"], ["updated_at", "2019-12-11 23:58:15.833182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.835787"], ["updated_at", "2019-12-11 23:58:15.835787"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1788"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1788], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1788')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Completed 200 OK in 139ms (Views: 93.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$u/V9VeCKgaSY3MEKo53hse9foy9ApXnmjPaITtrDABowOjTtsxSOq"], ["created_at", "2019-12-11 23:58:15.983639"], ["updated_at", "2019-12-11 23:58:15.983639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.985942"], ["updated_at", "2019-12-11 23:58:15.985942"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1789], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2105], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2105], ["room_id", 1789], ["created_at", "2019-12-11 23:58:15.990580"], ["updated_at", "2019-12-11 23:58:15.990580"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1789"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1789], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1789')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$RC4fRkaxENWwMyDzUviGe.TRCJ1mZvKHvCExRE/6EvCEiooXVjGeS"], ["created_at", "2019-12-11 23:58:16.002596"], ["updated_at", "2019-12-11 23:58:16.002596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.005043"], ["updated_at", "2019-12-11 23:58:16.005043"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1790], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2106], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2106], ["room_id", 1790], ["created_at", "2019-12-11 23:58:16.011665"], ["updated_at", "2019-12-11 23:58:16.011665"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1790"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1790], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1790')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iStNJ1zGxKT6f6jMqAJezuH8.ILC4HaDp9K6ooZc8uQ/pgDOiff1."], ["created_at", "2019-12-11 23:58:16.023596"], ["updated_at", "2019-12-11 23:58:16.023596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.027871"], ["updated_at", "2019-12-11 23:58:16.027871"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1791], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2107], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2107], ["room_id", 1791], ["created_at", "2019-12-11 23:58:16.032397"], ["updated_at", "2019-12-11 23:58:16.032397"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1791"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1791], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1791')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$iVOZDSlYi.jWVQQP.kAFMeNPen9ul.xO5FsFNLJr6xLeM2lJpwr1e"], ["created_at", "2019-12-11 23:58:16.045143"], ["updated_at", "2019-12-11 23:58:16.045143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.047960"], ["updated_at", "2019-12-11 23:58:16.047960"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1792], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2108], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2108], ["room_id", 1792], ["created_at", "2019-12-11 23:58:16.052964"], ["updated_at", "2019-12-11 23:58:16.052964"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1792"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1792], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1792')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 123ms (Views: 87.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jk50Dd.QAyp.4gKzWqmiT.EcPz0Xv/nGCg9yj/jFLVZw0WsEnF/DO"], ["created_at", "2019-12-11 23:58:16.753319"], ["updated_at", "2019-12-11 23:58:16.753319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.755667"], ["updated_at", "2019-12-11 23:58:16.755667"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.779675"], ["last_sign_in_at", "2019-12-11 23:58:16.779675"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.781125"], ["id", 2109]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1793"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1793], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2109], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2109], ["room_id", 1793], ["created_at", "2019-12-11 23:58:16.797907"], ["updated_at", "2019-12-11 23:58:16.797907"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.5ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1793], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$uJyHwB.hhmD14ZQwX40qzO6fIFGGD0wrcvT2DZqjOSC7d3KaN0w0O"], ["created_at", "2019-12-11 23:58:16.807567"], ["updated_at", "2019-12-11 23:58:16.807567"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.812453"], ["updated_at", "2019-12-11 23:58:16.812453"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.815351"], ["last_sign_in_at", "2019-12-11 23:58:16.815351"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.815920"], ["id", 2110]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1794"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1794], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2110], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2110], ["room_id", 1794], ["created_at", "2019-12-11 23:58:16.821773"], ["updated_at", "2019-12-11 23:58:16.821773"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fmXBTjpjA4VV6pBqKV1PUeJP899RWi/qCAR4y99Qu1IXtDUYRnU.q"], ["created_at", "2019-12-11 23:58:16.831332"], ["updated_at", "2019-12-11 23:58:16.831332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.833570"], ["updated_at", "2019-12-11 23:58:16.833570"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.836202"], ["last_sign_in_at", "2019-12-11 23:58:16.836202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.836751"], ["id", 2111]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1795"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1795], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$rdsCYO/Z3qKuCRWtxdV5lOXftdgR8gI/eOD4juwiBdBbpxPshAIba"], ["created_at", "2019-12-11 23:58:16.847825"], ["updated_at", "2019-12-11 23:58:16.847825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.850717"], ["updated_at", "2019-12-11 23:58:16.850717"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.853338"], ["last_sign_in_at", "2019-12-11 23:58:16.853338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.853879"], ["id", 2112]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1796"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IGVlkCmcZV4.qBDl337gj.gvpQez9h/mObN792lELZ6uxLCVhtluG"], ["created_at", "2019-12-11 23:58:16.866707"], ["updated_at", "2019-12-11 23:58:16.866707"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.869803"], ["updated_at", "2019-12-11 23:58:16.869803"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1797], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2113], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2113], ["room_id", 1797], ["created_at", "2019-12-11 23:58:16.874284"], ["updated_at", "2019-12-11 23:58:16.874284"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1797” for 127.0.0.1 at 2019-12-11 20:58:16 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.878496"], ["last_sign_in_at", "2019-12-11 23:58:16.878496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.879147"], ["id", 2113]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1797"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1797], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1797')[0m
Rendered appointments/show.html.erb within layouts/application (32.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)
Completed 200 OK in 479ms (Views: 459.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TVnIPF6GZxbWHpIrj/GKouQHXrEK5Bu37pLJn6WZJG/4F/fC.PAwW"], ["created_at", "2019-12-11 23:58:17.368537"], ["updated_at", "2019-12-11 23:58:17.368537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.371320"], ["updated_at", "2019-12-11 23:58:17.371320"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1798], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2114], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2114], ["room_id", 1798], ["created_at", "2019-12-11 23:58:17.376263"], ["updated_at", "2019-12-11 23:58:17.376263"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1798], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2114], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2114], ["room_id", 1798], ["created_at", "2019-12-11 23:58:17.380696"], ["updated_at", "2019-12-11 23:58:17.380696"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.383010"], ["last_sign_in_at", "2019-12-11 23:58:17.383010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.383535"], ["id", 2114]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2114]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 24ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$O/ZedlX57oLMnwam5DsFAuX9FFTAMuj2cmvcDgOn..5PrhIktn1xe"], ["created_at", "2019-12-11 23:58:17.415706"], ["updated_at", "2019-12-11 23:58:17.415706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.418127"], ["updated_at", "2019-12-11 23:58:17.418127"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1799], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2115], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2115], ["room_id", 1799], ["created_at", "2019-12-11 23:58:17.422410"], ["updated_at", "2019-12-11 23:58:17.422410"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1799], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2115], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2115], ["room_id", 1799], ["created_at", "2019-12-11 23:58:17.427281"], ["updated_at", "2019-12-11 23:58:17.427281"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.429616"], ["last_sign_in_at", "2019-12-11 23:58:17.429616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.430161"], ["id", 2115]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2115]] Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$YtMeaUz.nPwswqg2mpSYd..yLU4hKKeYp41FxmWlj8c574NSOpaPa"], ["created_at", "2019-12-11 23:58:17.444658"], ["updated_at", "2019-12-11 23:58:17.444658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.446813"], ["updated_at", "2019-12-11 23:58:17.446813"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1800], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2116], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2116], ["room_id", 1800], ["created_at", "2019-12-11 23:58:17.451436"], ["updated_at", "2019-12-11 23:58:17.451436"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/1005” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.453681"], ["last_sign_in_at", "2019-12-11 23:58:17.453681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.454222"], ["id", 2116]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1005"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1005], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1005]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nWTFj8mvBKgbcmfMFzBZ6.x3Yt1AoXyazoM3rOk3R98Jr15ruCJb6"], ["created_at", "2019-12-11 23:58:17.469024"], ["updated_at", "2019-12-11 23:58:17.469024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.471324"], ["last_sign_in_at", "2019-12-11 23:58:17.471324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.471824"], ["id", 2117]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 38ms (Views: 20.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a5HFZG.ZOCi3FZtJZ6J/Bua5WGG2d1BvaSQXgHmZ8G4fCzYnnJsjq"], ["created_at", "2019-12-11 23:58:17.520182"], ["updated_at", "2019-12-11 23:58:17.520182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.522756"], ["updated_at", "2019-12-11 23:58:17.522756"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1801], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2118], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2118], ["room_id", 1801], ["created_at", "2019-12-11 23:58:17.527842"], ["updated_at", "2019-12-11 23:58:17.527842"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1801], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2118], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2118], ["room_id", 1801], ["created_at", "2019-12-11 23:58:17.532443"], ["updated_at", "2019-12-11 23:58:17.532443"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.534943"], ["last_sign_in_at", "2019-12-11 23:58:17.534943"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.535484"], ["id", 2118]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1801], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2118], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2118], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e6/jg8AZ3IdEqywOu/KKP.it95U1Z0BAiAvlLFScb8KRP5D8iu7nG"], ["created_at", "2019-12-11 23:58:17.550922"], ["updated_at", "2019-12-11 23:58:17.550922"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.553258"], ["updated_at", "2019-12-11 23:58:17.553258"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1802], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2119], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2119], ["room_id", 1802], ["created_at", "2019-12-11 23:58:17.559456"], ["updated_at", "2019-12-11 23:58:17.559456"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1802], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2119], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2119], ["room_id", 1802], ["created_at", "2019-12-11 23:58:17.565094"], ["updated_at", "2019-12-11 23:58:17.565094"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.567952"], ["last_sign_in_at", "2019-12-11 23:58:17.567952"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.568689"], ["id", 2119]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1802], ["LIMIT", 1]] [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2119], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2119], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (4.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZMWPCg8eTr20kb0GZ5styez3LX/I/1/FozaMixqMLH3XaooeDaSGO"], ["created_at", "2019-12-11 23:58:17.586461"], ["updated_at", "2019-12-11 23:58:17.586461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.588829"], ["updated_at", "2019-12-11 23:58:17.588829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1803], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2120], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2120], ["room_id", 1803], ["created_at", "2019-12-11 23:58:17.593962"], ["updated_at", "2019-12-11 23:58:17.593962"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1803], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2120], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2120], ["room_id", 1803], ["created_at", "2019-12-11 23:58:17.608079"], ["updated_at", "2019-12-11 23:58:17.608079"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.611197"], ["last_sign_in_at", "2019-12-11 23:58:17.611197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.611770"], ["id", 2120]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1wsmeYYE62pq7lL07emHiuSXqndeqkrlrAwLuYONbtLNfAvymIObm"], ["created_at", "2019-12-11 23:58:17.623757"], ["updated_at", "2019-12-11 23:58:17.623757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.627058"], ["updated_at", "2019-12-11 23:58:17.627058"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1804], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2121], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2121], ["room_id", 1804], ["created_at", "2019-12-11 23:58:17.631246"], ["updated_at", "2019-12-11 23:58:17.631246"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1804], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2121], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2121], ["room_id", 1804], ["created_at", "2019-12-11 23:58:17.635820"], ["updated_at", "2019-12-11 23:58:17.635820"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.638515"], ["last_sign_in_at", "2019-12-11 23:58:17.638515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.639082"], ["id", 2121]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q8wC9voMVRTw25aQenaudOcSg8Dstj2Tqr.b7hqjgKHWi8a6S.oi."], ["created_at", "2019-12-11 23:58:17.655143"], ["updated_at", "2019-12-11 23:58:17.655143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.657990"], ["last_sign_in_at", "2019-12-11 23:58:17.657990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.658825"], ["id", 2122]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (10.0ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 68ms (Views: 51.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JjzhL2CUmVxBIELemjp9AO9Op1xGYBTYo.pnXTjue4vHCap/NZycO"], ["created_at", "2019-12-11 23:58:17.739506"], ["updated_at", "2019-12-11 23:58:17.739506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.742361"], ["last_sign_in_at", "2019-12-11 23:58:17.742361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.742999"], ["id", 2123]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N0agt9yQHPM.2Nxfbe745eiJaeIMPFB6JwpxDnGEdbbsVGvNsrAfG"], ["created_at", "2019-12-11 23:58:17.753732"], ["updated_at", "2019-12-11 23:58:17.753732"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.756119"], ["last_sign_in_at", "2019-12-11 23:58:17.756119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.756670"], ["id", 2124]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.3ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 22ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y3Sg0tprg5Gu5fMfpkAD2uPAc58YvPsi2m1ptMQRT/FqIFPoqIlIu"], ["created_at", "2019-12-11 23:58:17.787996"], ["updated_at", "2019-12-11 23:58:17.787996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.790470"], ["last_sign_in_at", "2019-12-11 23:58:17.790470"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.790984"], ["id", 2125]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.GyLCReals5g2VdMAyIXUeuGgaytEOn9ke/ODgWLeprbwOV8lCQLS"], ["created_at", "2019-12-11 23:58:17.812488"], ["updated_at", "2019-12-11 23:58:17.812488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.814892"], ["updated_at", "2019-12-11 23:58:17.814892"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1805” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.817136"], ["last_sign_in_at", "2019-12-11 23:58:17.817136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.817705"], ["id", 2126]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1805"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1805], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PuWgoLw6B7IUpH/OdEWF8ewoenV1wDg9dypzUiay2f0ciqv60mTGu"], ["created_at", "2019-12-11 23:58:17.846364"], ["updated_at", "2019-12-11 23:58:17.846364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.848908"], ["updated_at", "2019-12-11 23:58:17.848908"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1806” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.851304"], ["last_sign_in_at", "2019-12-11 23:58:17.851304"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.851910"], ["id", 2127]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1806"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1806], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.863277"], ["updated_at", "2019-12-11 23:58:17.863277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1807” for 127.0.0.1 at 2019-12-11 20:58:17 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1807"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7RtHRUMiwxygQqSEXqFukO3K3pjjmb1Xg4Ckgd/oDP.etdaAwtgrm"], ["created_at", "2019-12-11 23:58:17.879807"], ["updated_at", "2019-12-11 23:58:17.879807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.882356"], ["updated_at", "2019-12-11 23:58:17.882356"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1808/edit” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.884614"], ["last_sign_in_at", "2019-12-11 23:58:17.884614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.885065"], ["id", 2128]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1808"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1808], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 21ms (Views: 3.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cc65kMjcV795sz6cuFV.IeLcPDVGDGoFFL8RyJ1rtsfAc2hIRkAqy"], ["created_at", "2019-12-11 23:58:17.914544"], ["updated_at", "2019-12-11 23:58:17.914544"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.916983"], ["updated_at", "2019-12-11 23:58:17.916983"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1809/edit” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.919265"], ["last_sign_in_at", "2019-12-11 23:58:17.919265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.919910"], ["id", 2129]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1809"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1809], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.931090"], ["updated_at", "2019-12-11 23:58:17.931090"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1810” for 127.0.0.1 at 2019-12-11 20:58:17 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1810"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CM/BDSQ4q.O6AmTmZ67VYeFlMZqsiga3EgPPQxV161G5ja7SSI2J2"], ["created_at", "2019-12-11 23:58:17.943147"], ["updated_at", "2019-12-11 23:58:17.943147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.946110"], ["last_sign_in_at", "2019-12-11 23:58:17.946110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.946835"], ["id", 2130]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.950234"], ["updated_at", "2019-12-11 23:58:17.950234"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q0GYM43Y0hK4rev98zsTp.XNzSddlf8QtXxnLMhT5L/qXSqX.cgl."], ["created_at", "2019-12-11 23:58:17.958440"], ["updated_at", "2019-12-11 23:58:17.958440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.961769"], ["last_sign_in_at", "2019-12-11 23:58:17.961769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.962476"], ["id", 2131]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.966070"], ["updated_at", "2019-12-11 23:58:17.966070"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0cYCPBQUsK5oafQXL12EPeCoDkLXBo6dnxlgTEPEg1nq350g123p."], ["created_at", "2019-12-11 23:58:17.976836"], ["updated_at", "2019-12-11 23:58:17.976836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.981639"], ["last_sign_in_at", "2019-12-11 23:58:17.981639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.982557"], ["id", 2132]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (1.5ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KP7N0LP0EWJ18fDdsidbMuf.EK2ugL4ka8I1GrywDvlbLMtepKv4q"], ["created_at", "2019-12-11 23:58:18.000461"], ["updated_at", "2019-12-11 23:58:18.000461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.003864"], ["last_sign_in_at", "2019-12-11 23:58:18.003864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.004837"], ["id", 2133]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BOr7FPpkjqFl14rzE/eUBurE6eJUFJ0LoQvfp6SeWFnU3TtCRO5Bm"], ["created_at", "2019-12-11 23:58:18.018037"], ["updated_at", "2019-12-11 23:58:18.018037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.020813"], ["last_sign_in_at", "2019-12-11 23:58:18.020813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.021354"], ["id", 2134]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C7U.xo1CnLFWbQijXXn2H.cbdqD.RDYE4AvjjvJaqtdrlefjA2rGu"], ["created_at", "2019-12-11 23:58:18.033369"], ["updated_at", "2019-12-11 23:58:18.033369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.035485"], ["updated_at", "2019-12-11 23:58:18.035485"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1813” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.037775"], ["last_sign_in_at", "2019-12-11 23:58:18.037775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.038346"], ["id", 2135]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1813"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1813], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:58:18.042829"], ["id", 1813]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1813 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oeBXIl7O83WAqiyCA1qYDuFmqh.q2XbhmjdV4rTllZad7mK4fk4uG"], ["created_at", "2019-12-11 23:58:18.052016"], ["updated_at", "2019-12-11 23:58:18.052016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.054397"], ["updated_at", "2019-12-11 23:58:18.054397"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1814” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.056902"], ["last_sign_in_at", "2019-12-11 23:58:18.056902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.057463"], ["id", 2136]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1814"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1814], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:58:18.062699"], ["id", 1814]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1814 Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dSbJejCr/zkkkxaS3P1hhum4URfTLUuXk8iIwjXplQAvMxPuqBLlS"], ["created_at", "2019-12-11 23:58:18.072438"], ["updated_at", "2019-12-11 23:58:18.072438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.075510"], ["updated_at", "2019-12-11 23:58:18.075510"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1815” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.078831"], ["last_sign_in_at", "2019-12-11 23:58:18.078831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.079375"], ["id", 2137]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1815"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1815], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KEUJ1asrZ4VXLISRMpajvukiFty.clC3WFW7G.K2iOGM7bh.bG2/."], ["created_at", "2019-12-11 23:58:18.095843"], ["updated_at", "2019-12-11 23:58:18.095843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.098501"], ["updated_at", "2019-12-11 23:58:18.098501"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1816” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.101228"], ["last_sign_in_at", "2019-12-11 23:58:18.101228"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.101800"], ["id", 2138]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1816"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1816], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gpfjd.Awm0UXdFdBe16pKOINyQ8v0QD04BnNoheP86qhQui1jmI/."], ["created_at", "2019-12-11 23:58:18.119144"], ["updated_at", "2019-12-11 23:58:18.119144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.122501"], ["last_sign_in_at", "2019-12-11 23:58:18.122501"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.123090"], ["id", 2139]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$48U4Gzz.z6R0eFwjuCMMv.t/CcIe3kFsJQ0jsAeoGTkrD8H1di3OC"], ["created_at", "2019-12-11 23:58:18.134161"], ["updated_at", "2019-12-11 23:58:18.134161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.136558"], ["updated_at", "2019-12-11 23:58:18.136558"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1817” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.138805"], ["last_sign_in_at", "2019-12-11 23:58:18.138805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.139336"], ["id", 2140]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1817"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1817], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1817]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TrKCwXgKiLswQ6AED3jlHelMqtrI0SxJXWQ7pCyc6XWy6dqykm56y"], ["created_at", "2019-12-11 23:58:18.152153"], ["updated_at", "2019-12-11 23:58:18.152153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.154833"], ["updated_at", "2019-12-11 23:58:18.154833"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1818” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.156895"], ["last_sign_in_at", "2019-12-11 23:58:18.156895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.157404"], ["id", 2141]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1818"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1818], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1818]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sD8DNPAU1tEgjonGr5ui9.WlUlnTMp/RME.x7FCFiyZHGfEh5j/qW"], ["created_at", "2019-12-11 23:58:18.171068"], ["updated_at", "2019-12-11 23:58:18.171068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.174402"], ["updated_at", "2019-12-11 23:58:18.174402"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1819” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.177864"], ["last_sign_in_at", "2019-12-11 23:58:18.177864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.178635"], ["id", 2142]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1819"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$47xaT/zI0Fm1dhCj/5qyfud7/l5M6ZlMzfz5HPGEM2psxmogKZoH."], ["created_at", "2019-12-11 23:58:18.188767"], ["updated_at", "2019-12-11 23:58:18.188767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.191066"], ["updated_at", "2019-12-11 23:58:18.191066"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1820” for 127.0.0.1 at 2019-12-11 20:58:18 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.194408"], ["last_sign_in_at", "2019-12-11 23:58:18.194408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.195045"], ["id", 2143]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1820"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q0bqDDuYskzXabXQaKL9muwcDz8qXilD5OU9o/caau32IOllO9rZO"], ["created_at", "2019-12-12 00:23:42.078103"], ["updated_at", "2019-12-12 00:23:42.078103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.087236"], ["updated_at", "2019-12-12 00:23:42.087236"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2144], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.3ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 173ms (Views: 115.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$sKqW80wPn2rbrDR99pQGFuK8qtvZ4L8KingqvW3dwCE7yyC7kkEgG"], ["created_at", "2019-12-12 00:23:42.271808"], ["updated_at", "2019-12-12 00:23:42.271808"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.274294"], ["updated_at", "2019-12-12 00:23:42.274294"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1822], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2145], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2145], ["room_id", 1822], ["created_at", "2019-12-12 00:23:42.315887"], ["updated_at", "2019-12-12 00:23:42.315887"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2145], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2145], ["id", 1014], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7Wg3YttYmAm5jxQrDPI8P.qR./uS4KR6vjfdNXs35JeoSh3IamTPe"], ["created_at", "2019-12-12 00:23:42.332011"], ["updated_at", "2019-12-12 00:23:42.332011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.334471"], ["updated_at", "2019-12-12 00:23:42.334471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1823], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2146], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2146], ["room_id", 1823], ["created_at", "2019-12-12 00:23:42.338852"], ["updated_at", "2019-12-12 00:23:42.338852"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2146], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2146], ["id", 1015], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$9Z27z51usaM0xM316hkiZOBcd0N7typt3nUUEepPZbya2BB66mpEi"], ["created_at", "2019-12-12 00:23:42.351104"], ["updated_at", "2019-12-12 00:23:42.351104"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.353479"], ["updated_at", "2019-12-12 00:23:42.353479"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1824], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2147], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2147], ["room_id", 1824], ["created_at", "2019-12-12 00:23:42.357683"], ["updated_at", "2019-12-12 00:23:42.357683"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2147], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2147], ["id", 1016], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$huKMEUPZx17HY5yW7A3D1e2QU1IdSqd0/8U2COQXd/I3RNks4imu2"], ["created_at", "2019-12-12 00:23:42.371754"], ["updated_at", "2019-12-12 00:23:42.371754"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.374166"], ["updated_at", "2019-12-12 00:23:42.374166"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1825"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1825], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1825')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Completed 200 OK in 110ms (Views: 76.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$/4WHHQtR9UiK7KSjCUVXDOYgSLEMt3xMt8Z8b8r7gHBicOlX4v8qC"], ["created_at", "2019-12-12 00:23:42.494251"], ["updated_at", "2019-12-12 00:23:42.494251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.496682"], ["updated_at", "2019-12-12 00:23:42.496682"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1826], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2149], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2149], ["room_id", 1826], ["created_at", "2019-12-12 00:23:42.501306"], ["updated_at", "2019-12-12 00:23:42.501306"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1826"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1826], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1826')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$PmxunayJyuuPjjC8CORr5u9Vhx6.o1wjuJJ6Koj/YC9Ofd/AAGIWm"], ["created_at", "2019-12-12 00:23:42.512748"], ["updated_at", "2019-12-12 00:23:42.512748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.515064"], ["updated_at", "2019-12-12 00:23:42.515064"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1827], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2150], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2150], ["room_id", 1827], ["created_at", "2019-12-12 00:23:42.519377"], ["updated_at", "2019-12-12 00:23:42.519377"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1827"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1827], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1827')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VlcDWXCR0UK/dwB2o3laIOg8UMXlQIYqcW6Pd9VMUFHimzzWSFw/i"], ["created_at", "2019-12-12 00:23:42.531889"], ["updated_at", "2019-12-12 00:23:42.531889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.534228"], ["updated_at", "2019-12-12 00:23:42.534228"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1828], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2151], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2151], ["room_id", 1828], ["created_at", "2019-12-12 00:23:42.538752"], ["updated_at", "2019-12-12 00:23:42.538752"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1828"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1828], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1828')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$6iyCirRVTG1JcpJz1m33P.hEnZmTpYPf.i5zNPvLI5b/zr2Mny.BS"], ["created_at", "2019-12-12 00:23:42.549956"], ["updated_at", "2019-12-12 00:23:42.549956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.552302"], ["updated_at", "2019-12-12 00:23:42.552302"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1829], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2152], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2152], ["room_id", 1829], ["created_at", "2019-12-12 00:23:42.556506"], ["updated_at", "2019-12-12 00:23:42.556506"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1829"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1829], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1829')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 109ms (Views: 77.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$TWZ/m.hxXB.ljzvJRJhYVueds1fb0.fr.xrZ0SxPzEhop7yQikSh2"], ["created_at", "2019-12-12 00:23:43.156944"], ["updated_at", "2019-12-12 00:23:43.156944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.159276"], ["updated_at", "2019-12-12 00:23:43.159276"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.177158"], ["last_sign_in_at", "2019-12-12 00:23:43.177158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.177885"], ["id", 2153]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1830"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1830], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2153], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2153], ["room_id", 1830], ["created_at", "2019-12-12 00:23:43.186112"], ["updated_at", "2019-12-12 00:23:43.186112"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1830], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$3FOI1riH75ZRLoyKHOHzuOJVP9FfKFMLTJ99kHXKZW212n6S8pN/C"], ["created_at", "2019-12-12 00:23:43.195380"], ["updated_at", "2019-12-12 00:23:43.195380"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.197580"], ["updated_at", "2019-12-12 00:23:43.197580"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.199945"], ["last_sign_in_at", "2019-12-12 00:23:43.199945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.200555"], ["id", 2154]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1831"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1831], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2154], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2154], ["room_id", 1831], ["created_at", "2019-12-12 00:23:43.205523"], ["updated_at", "2019-12-12 00:23:43.205523"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$c6IVhaLEeW7ulWTUJ7cmEOIim/uKahKSxJV6Wl2haJcSqlYQtfhlG"], ["created_at", "2019-12-12 00:23:43.214292"], ["updated_at", "2019-12-12 00:23:43.214292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.216628"], ["updated_at", "2019-12-12 00:23:43.216628"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.219230"], ["last_sign_in_at", "2019-12-12 00:23:43.219230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.219787"], ["id", 2155]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1832"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1832], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$xDy.Dxr/ZOtIXDV4FOis7OGWyb8BHIXNIB16ZcqOrT6fIeUd.swQu"], ["created_at", "2019-12-12 00:23:43.229767"], ["updated_at", "2019-12-12 00:23:43.229767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.232005"], ["updated_at", "2019-12-12 00:23:43.232005"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.234316"], ["last_sign_in_at", "2019-12-12 00:23:43.234316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.234847"], ["id", 2156]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1833"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IgbA5du4gCIL0wTQbGurI.FqEP1WPfKDxHMHM4HeNrCcp/gVMi7L6"], ["created_at", "2019-12-12 00:23:43.244846"], ["updated_at", "2019-12-12 00:23:43.244846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.247147"], ["updated_at", "2019-12-12 00:23:43.247147"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1834], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2157], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2157], ["room_id", 1834], ["created_at", "2019-12-12 00:23:43.251277"], ["updated_at", "2019-12-12 00:23:43.251277"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1834” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.253723"], ["last_sign_in_at", "2019-12-12 00:23:43.253723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.254273"], ["id", 2157]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1834"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1834], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1834')[0m
Rendered appointments/show.html.erb within layouts/application (21.5ms)
Rendered layouts/_header-user.html.erb (1.1ms)
Completed 200 OK in 403ms (Views: 385.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$txIOYb5U6M32gDG1VQ8RreB5mjMnuAc3er6flVg.cvzA9BEtMp9YW"], ["created_at", "2019-12-12 00:23:43.666881"], ["updated_at", "2019-12-12 00:23:43.666881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.669126"], ["updated_at", "2019-12-12 00:23:43.669126"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1835], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2158], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2158], ["room_id", 1835], ["created_at", "2019-12-12 00:23:43.673188"], ["updated_at", "2019-12-12 00:23:43.673188"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1835], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2158], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2158], ["room_id", 1835], ["created_at", "2019-12-12 00:23:43.679224"], ["updated_at", "2019-12-12 00:23:43.679224"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.682019"], ["last_sign_in_at", "2019-12-12 00:23:43.682019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.682635"], ["id", 2158]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2158]] Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$h0974wKi2H7pHTmtINnZOe7A2JfaNbr9804l3upAMmbYXCtThCbke"], ["created_at", "2019-12-12 00:23:43.713195"], ["updated_at", "2019-12-12 00:23:43.713195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.715548"], ["updated_at", "2019-12-12 00:23:43.715548"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1836], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2159], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2159], ["room_id", 1836], ["created_at", "2019-12-12 00:23:43.719651"], ["updated_at", "2019-12-12 00:23:43.719651"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1836], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2159], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2159], ["room_id", 1836], ["created_at", "2019-12-12 00:23:43.723771"], ["updated_at", "2019-12-12 00:23:43.723771"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.726493"], ["last_sign_in_at", "2019-12-12 00:23:43.726493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.727103"], ["id", 2159]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2159]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$w4qdC9YAekM8nR9IIFYBAOrwpb12E77nX0598utTneBR9AclZsPg."], ["created_at", "2019-12-12 00:23:43.741205"], ["updated_at", "2019-12-12 00:23:43.741205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.744276"], ["updated_at", "2019-12-12 00:23:43.744276"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1837], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2160], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2160], ["room_id", 1837], ["created_at", "2019-12-12 00:23:43.748815"], ["updated_at", "2019-12-12 00:23:43.748815"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/1028” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.751361"], ["last_sign_in_at", "2019-12-12 00:23:43.751361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.751898"], ["id", 2160]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1028"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1028]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5TZSoSJ93wUu3BqBA64xYulIYU0dUZylo9Qjb6qCQYHXCbfHQY70m"], ["created_at", "2019-12-12 00:23:43.767064"], ["updated_at", "2019-12-12 00:23:43.767064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.769582"], ["last_sign_in_at", "2019-12-12 00:23:43.769582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.770132"], ["id", 2161]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 36ms (Views: 19.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E7rXwCKfJjB5gryV5szVyuC0RcYBTWcOsk73EaKofBdKrjabEpkUK"], ["created_at", "2019-12-12 00:23:43.816595"], ["updated_at", "2019-12-12 00:23:43.816595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.818947"], ["updated_at", "2019-12-12 00:23:43.818947"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1838], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2162], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2162], ["room_id", 1838], ["created_at", "2019-12-12 00:23:43.823244"], ["updated_at", "2019-12-12 00:23:43.823244"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1838], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2162], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2162], ["room_id", 1838], ["created_at", "2019-12-12 00:23:43.827730"], ["updated_at", "2019-12-12 00:23:43.827730"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.830242"], ["last_sign_in_at", "2019-12-12 00:23:43.830242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.830790"], ["id", 2162]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1838], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2162], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2162], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VgPY88.cPP045fAGZ3TsN.ZG5FXwKs53Ho75hjutfP4eKI6bBQy22"], ["created_at", "2019-12-12 00:23:43.845344"], ["updated_at", "2019-12-12 00:23:43.845344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.847829"], ["updated_at", "2019-12-12 00:23:43.847829"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1839], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2163], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2163], ["room_id", 1839], ["created_at", "2019-12-12 00:23:43.851937"], ["updated_at", "2019-12-12 00:23:43.851937"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1839], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2163], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2163], ["room_id", 1839], ["created_at", "2019-12-12 00:23:43.856156"], ["updated_at", "2019-12-12 00:23:43.856156"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.859110"], ["last_sign_in_at", "2019-12-12 00:23:43.859110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.859763"], ["id", 2163]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1839], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2163], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2163], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4xdQpbVYT9HM0gNHHkWDNejgMNel7KZo9.jDgb5pf1R2RvcbnhsyO"], ["created_at", "2019-12-12 00:23:43.875873"], ["updated_at", "2019-12-12 00:23:43.875873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.878943"], ["updated_at", "2019-12-12 00:23:43.878943"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1840], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2164], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2164], ["room_id", 1840], ["created_at", "2019-12-12 00:23:43.883621"], ["updated_at", "2019-12-12 00:23:43.883621"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1840], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2164], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2164], ["room_id", 1840], ["created_at", "2019-12-12 00:23:43.888513"], ["updated_at", "2019-12-12 00:23:43.888513"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.891265"], ["last_sign_in_at", "2019-12-12 00:23:43.891265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.891981"], ["id", 2164]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MjGWtoDrFbqEesSPUY5aNeOtIpKYB7oOertkVt1NEDgytsVnQUO4O"], ["created_at", "2019-12-12 00:23:43.904796"], ["updated_at", "2019-12-12 00:23:43.904796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.907381"], ["updated_at", "2019-12-12 00:23:43.907381"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1841], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2165], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2165], ["room_id", 1841], ["created_at", "2019-12-12 00:23:43.912452"], ["updated_at", "2019-12-12 00:23:43.912452"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1841], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2165], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2165], ["room_id", 1841], ["created_at", "2019-12-12 00:23:43.917188"], ["updated_at", "2019-12-12 00:23:43.917188"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.919849"], ["last_sign_in_at", "2019-12-12 00:23:43.919849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.920464"], ["id", 2165]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t71tbV6EtCbQsoZ36S93oustGfyO630nKingNmfOuUdkGbuyHdcJ2"], ["created_at", "2019-12-12 00:23:43.935777"], ["updated_at", "2019-12-12 00:23:43.935777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:23:43 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.938373"], ["last_sign_in_at", "2019-12-12 00:23:43.938373"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.938917"], ["id", 2166]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (8.9ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 65ms (Views: 48.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7r5yUkB603OVpJa/yW0Ogu6Y50zzunZHR4tmt6trik8PVo6Ap72Ca"], ["created_at", "2019-12-12 00:23:44.017040"], ["updated_at", "2019-12-12 00:23:44.017040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.019512"], ["last_sign_in_at", "2019-12-12 00:23:44.019512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.020080"], ["id", 2167]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M9ypB4sPC3JSQI3EpomMSuDc2XqouA.ZCCmLul0GiQHjIh4PYrCPy"], ["created_at", "2019-12-12 00:23:44.030738"], ["updated_at", "2019-12-12 00:23:44.030738"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.033219"], ["last_sign_in_at", "2019-12-12 00:23:44.033219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.033735"], ["id", 2168]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.0ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PIsYfnL4zvB29iuX2MDWH.dJEuuAUA7tuUWI7pzUvV9i2gOhtAG8."], ["created_at", "2019-12-12 00:23:44.062676"], ["updated_at", "2019-12-12 00:23:44.062676"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.065001"], ["last_sign_in_at", "2019-12-12 00:23:44.065001"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.065543"], ["id", 2169]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VSTNj/4NUicMQc3vIvqWNOR.P9QicTLE8ktWlypkNxCqu.3dp5j/q"], ["created_at", "2019-12-12 00:23:44.096090"], ["updated_at", "2019-12-12 00:23:44.096090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.098476"], ["updated_at", "2019-12-12 00:23:44.098476"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1842” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.100804"], ["last_sign_in_at", "2019-12-12 00:23:44.100804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.101378"], ["id", 2170]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1842"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1842], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 19ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.NyzZkCoDIzpC9evC/8/G.SJaKrmyBFMO/UK2/45h/ymsFdWF6nPq"], ["created_at", "2019-12-12 00:23:44.129444"], ["updated_at", "2019-12-12 00:23:44.129444"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.131635"], ["updated_at", "2019-12-12 00:23:44.131635"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1843” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.133704"], ["last_sign_in_at", "2019-12-12 00:23:44.133704"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.134273"], ["id", 2171]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1843"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1843], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.143888"], ["updated_at", "2019-12-12 00:23:44.143888"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1844” for 127.0.0.1 at 2019-12-11 21:23:44 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1844"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GdMAkBIFuhXVbusLKeS53O54HgIH6C2lK/7GD/vgTjXuLkxqZYFBK"], ["created_at", "2019-12-12 00:23:44.153964"], ["updated_at", "2019-12-12 00:23:44.153964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.156252"], ["updated_at", "2019-12-12 00:23:44.156252"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1845/edit” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.158475"], ["last_sign_in_at", "2019-12-12 00:23:44.158475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.159296"], ["id", 2172]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1845"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1845], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 23ms (Views: 4.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BA3tOFwAA/veJX6/uvft.O5Ujr1tmM/3WlEjPTTzywmPL79p8E3OS"], ["created_at", "2019-12-12 00:23:44.191481"], ["updated_at", "2019-12-12 00:23:44.191481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.194122"], ["updated_at", "2019-12-12 00:23:44.194122"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1846/edit” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.196393"], ["last_sign_in_at", "2019-12-12 00:23:44.196393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.196960"], ["id", 2173]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1846"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1846], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.207868"], ["updated_at", "2019-12-12 00:23:44.207868"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1847” for 127.0.0.1 at 2019-12-11 21:23:44 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1847"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4DOBFjyM94TYy7THRg2Xnu9SiLzZOv5e6fTMp7uS2M7xgfCOL4QkS"], ["created_at", "2019-12-12 00:23:44.219680"], ["updated_at", "2019-12-12 00:23:44.219680"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.222364"], ["last_sign_in_at", "2019-12-12 00:23:44.222364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.222893"], ["id", 2174]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.226831"], ["updated_at", "2019-12-12 00:23:44.226831"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yFfywUXUlHrjlkhj2WPL.OqVgs6wnfo8ZVlV/BOi7EJeBYYHYzxva"], ["created_at", "2019-12-12 00:23:44.235600"], ["updated_at", "2019-12-12 00:23:44.235600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.238441"], ["last_sign_in_at", "2019-12-12 00:23:44.238441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.238959"], ["id", 2175]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.242806"], ["updated_at", "2019-12-12 00:23:44.242806"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fWfp7TtX2PJJBGLv/.Hcpe6.oFQXDrAO1SwABGPbRcIZiboz2okFy"], ["created_at", "2019-12-12 00:23:44.251640"], ["updated_at", "2019-12-12 00:23:44.251640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.254511"], ["last_sign_in_at", "2019-12-12 00:23:44.254511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.255109"], ["id", 2176]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OU50Ejxw6xFauz7QyO46lebYUKHoIm2kXq.21wF.qphFjgXhERo7."], ["created_at", "2019-12-12 00:23:44.267091"], ["updated_at", "2019-12-12 00:23:44.267091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.269807"], ["last_sign_in_at", "2019-12-12 00:23:44.269807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.270328"], ["id", 2177]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ltjxYNYxrzp/edatQkh1s.8ImCvDVnHbM3QdrVN6Ti8zMttan8KOm"], ["created_at", "2019-12-12 00:23:44.282391"], ["updated_at", "2019-12-12 00:23:44.282391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.285168"], ["last_sign_in_at", "2019-12-12 00:23:44.285168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.285707"], ["id", 2178]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2pmu8xxPAOytBrE79Yy7zu5yypZEgXIw6gBgg31fXXL37C0za7LDm"], ["created_at", "2019-12-12 00:23:44.297494"], ["updated_at", "2019-12-12 00:23:44.297494"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.299762"], ["updated_at", "2019-12-12 00:23:44.299762"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1850” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.302154"], ["last_sign_in_at", "2019-12-12 00:23:44.302154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.302685"], ["id", 2179]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1850"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1850], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:23:44.306755"], ["id", 1850]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1850 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6nfg70s64ja8gnvWAAnOKOOQnpL2dLSWiAOrDnKWdrRXs.YVvNMkO"], ["created_at", "2019-12-12 00:23:44.315763"], ["updated_at", "2019-12-12 00:23:44.315763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.318161"], ["updated_at", "2019-12-12 00:23:44.318161"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1851” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.320644"], ["last_sign_in_at", "2019-12-12 00:23:44.320644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.321259"], ["id", 2180]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1851"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1851], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:23:44.325509"], ["id", 1851]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1851 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GiD1.mhgj/shgz3qZBUld.G8kd0HrrXzHCtDHyZgzOGoVLC2K72aG"], ["created_at", "2019-12-12 00:23:44.334940"], ["updated_at", "2019-12-12 00:23:44.334940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.337427"], ["updated_at", "2019-12-12 00:23:44.337427"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1852” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.339989"], ["last_sign_in_at", "2019-12-12 00:23:44.339989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.340589"], ["id", 2181]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1852"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1852], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$78ZDOELrqf/oBCCJCBza0.DDofr3uuraCSWl2JoA02CFEQYZXyDBC"], ["created_at", "2019-12-12 00:23:44.356109"], ["updated_at", "2019-12-12 00:23:44.356109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.358708"], ["updated_at", "2019-12-12 00:23:44.358708"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1853” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.361653"], ["last_sign_in_at", "2019-12-12 00:23:44.361653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.362228"], ["id", 2182]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1853"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1853], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aRR4tr66HRuWhlQ4xcOvi.0l0oCzpr593RBnDa0L8VZLUiMKchTnq"], ["created_at", "2019-12-12 00:23:44.377653"], ["updated_at", "2019-12-12 00:23:44.377653"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.380519"], ["last_sign_in_at", "2019-12-12 00:23:44.380519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.381361"], ["id", 2183]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MGfe33eVh.zx9K9foKfWAOwtVEbs45.ljCZspm7ASvHFpUpYy03TW"], ["created_at", "2019-12-12 00:23:44.391484"], ["updated_at", "2019-12-12 00:23:44.391484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.394338"], ["updated_at", "2019-12-12 00:23:44.394338"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1854” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.396424"], ["last_sign_in_at", "2019-12-12 00:23:44.396424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.396948"], ["id", 2184]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1854"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1854], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1854]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JkV8YvTSacYhs0mKAyS2bO9/mXXUYAgnmn498L1DhroJcU46Jzxoq"], ["created_at", "2019-12-12 00:23:44.408691"], ["updated_at", "2019-12-12 00:23:44.408691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.411406"], ["updated_at", "2019-12-12 00:23:44.411406"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1855” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.413840"], ["last_sign_in_at", "2019-12-12 00:23:44.413840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.414449"], ["id", 2185]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1855"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1855], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1855]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dOKYmOnaGkVwTK6f6SsdzOETVOi9RycWqmk1y2nwcMEAk7Teqh.pK"], ["created_at", "2019-12-12 00:23:44.426914"], ["updated_at", "2019-12-12 00:23:44.426914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.429257"], ["updated_at", "2019-12-12 00:23:44.429257"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1856” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.431315"], ["last_sign_in_at", "2019-12-12 00:23:44.431315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.431881"], ["id", 2186]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1856"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PwcTL6OjXkbvSlY.BJRU2u4ZOTmdYOeRQLS5.eIiOV6dd3Vg1toie"], ["created_at", "2019-12-12 00:23:44.441230"], ["updated_at", "2019-12-12 00:23:44.441230"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.444094"], ["updated_at", "2019-12-12 00:23:44.444094"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1857” for 127.0.0.1 at 2019-12-11 21:23:44 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.446224"], ["last_sign_in_at", "2019-12-12 00:23:44.446224"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.446937"], ["id", 2187]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1857"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$4HT254Ofzqbv72/62KYfxOhxuiGrKrD7eAWSEH1GD/K0XqltCrDmy"], ["created_at", "2019-12-12 00:24:00.906153"], ["updated_at", "2019-12-12 00:24:00.906153"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:00 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (45.6ms) Rendered users/sessions/new.html.erb within layouts/application (342.1ms)
Completed 200 OK in 503ms (Views: 495.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:01.547141"], ["last_sign_in_at", "2019-12-12 00:24:01.547141"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:01.560600"], ["id", 2188]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 185ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2188], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 56ms (Views: 36.9ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2188], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2188], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 72ms (Views: 44.4ms | ActiveRecord: 3.1ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2188], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:24:01.884530"], ["updated_at", "2019-12-12 00:24:01.884530"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2188], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$rbgCGZEH/kLBNYa9Zz6KfOOhJvyMZMpDz57B1d2wAlcO3GwPf6Fgq"], ["created_at", "2019-12-12 00:24:01.904187"], ["updated_at", "2019-12-12 00:24:01.904187"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:01.921038"], ["last_sign_in_at", "2019-12-12 00:24:01.921038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:01.921638"], ["id", 2189]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2189], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2189], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2189], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (2.2ms) Rendered layouts/_header-admin.html.erb (1.1ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.6ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2189], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:24:01.967956"], ["updated_at", "2019-12-12 00:24:01.967956"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2189], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (1.1ms)
Completed 200 OK in 36ms (Views: 19.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$.4Qro1HGATh3wbIT5veGPu5oS0GkYj/ziyCyV4YQQR8JSf5spVHQm"], ["created_at", "2019-12-12 00:24:02.042701"], ["updated_at", "2019-12-12 00:24:02.042701"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.7ms)
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.070407"], ["last_sign_in_at", "2019-12-12 00:24:02.070407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.070974"], ["id", 2190]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2190], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.6ms)
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$crUiYIFPA6BAEnKgqjPvcOw3MBfeW4i84Ww3luaDlRo7X2TPL8JHi"], ["created_at", "2019-12-12 00:24:02.119993"], ["updated_at", "2019-12-12 00:24:02.119993"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$l3o5GV7f41iG5b.MDkHPPeVKY/V1dNtUrB9Pf5A9Ykw.KdZze6eEa"], ["created_at", "2019-12-12 00:24:02.165884"], ["updated_at", "2019-12-12 00:24:02.165884"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.194359"], ["last_sign_in_at", "2019-12-12 00:24:02.194359"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.195641"], ["id", 2192]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2192], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2192], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (1.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2192], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 76ms (Views: 41.7ms | ActiveRecord: 2.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$sk8vEGjioHbuifbmotnS.ee09jJROksCXpUUTa9fiMGPY9SdAsiXS"], ["created_at", "2019-12-12 00:24:02.305183"], ["updated_at", "2019-12-12 00:24:02.305183"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.321900"], ["last_sign_in_at", "2019-12-12 00:24:02.321900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.322486"], ["id", 2193]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-12-12 00:24:02.358114"], ["updated_at", "2019-12-12 00:24:02.358114"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 4.1ms | ActiveRecord: 1.0ms) Started GET “/appointments/1860” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1860"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1860], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1860')[0m
Rendered appointments/show.html.erb within layouts/application (10.2ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 73ms (Views: 49.5ms | ActiveRecord: 1.4ms) Started POST “/appointments.1860” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-11", "start_time"=>"18:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1860], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2193], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 2193], ["room_id", 1860], ["created_at", "2019-12-12 00:24:02.540509"], ["updated_at", "2019-12-12 00:24:02.540509"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 45ms (ActiveRecord: 4.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1860], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2193], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (4.5ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2193], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 2.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$yq/zg.85uHz5gL0LtiILOOxVfwBs17qz3AfJf.rbE0kcfzsqU01Em"], ["created_at", "2019-12-12 00:24:02.597762"], ["updated_at", "2019-12-12 00:24:02.597762"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.615638"], ["last_sign_in_at", "2019-12-12 00:24:02.615638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.616321"], ["id", 2194]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2194], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.628439"], ["updated_at", "2019-12-12 00:24:02.628439"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.630634"], ["updated_at", "2019-12-12 00:24:02.630634"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1862], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2194], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2194], ["room_id", 1862], ["created_at", "2019-12-12 00:24:02.640178"], ["updated_at", "2019-12-12 00:24:02.640178"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2194], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1862], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.5ms) [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2194], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 25ms (Views: 6.1ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2194], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 23ms (Views: 3.6ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$hfRfwdQFrk2Pzj7umECOku8Z2vWStcXWds3GzM0e9WB6i6kqUsfS."], ["created_at", "2019-12-12 00:24:02.719226"], ["updated_at", "2019-12-12 00:24:02.719226"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.734074"], ["last_sign_in_at", "2019-12-12 00:24:02.734074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.734610"], ["id", 2195]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2195], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.743608"], ["updated_at", "2019-12-12 00:24:02.743608"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.745272"], ["updated_at", "2019-12-12 00:24:02.745272"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1864], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2195], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2195], ["room_id", 1864], ["created_at", "2019-12-12 00:24:02.749697"], ["updated_at", "2019-12-12 00:24:02.749697"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2195], ["LIMIT", 1]] [1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1864], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2195], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2195], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$K4d8zbxz51GYZs6f7/AX3.DrY5M.fWpoYndCK68.K/JPPwmPvDEAa"], ["created_at", "2019-12-12 00:24:02.777966"], ["updated_at", "2019-12-12 00:24:02.777966"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.791645"], ["last_sign_in_at", "2019-12-12 00:24:02.791645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.792242"], ["id", 2196]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2196], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.801815"], ["updated_at", "2019-12-12 00:24:02.801815"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.803748"], ["updated_at", "2019-12-12 00:24:02.803748"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1866], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2196], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2196], ["room_id", 1866], ["created_at", "2019-12-12 00:24:02.808539"], ["updated_at", "2019-12-12 00:24:02.808539"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2196], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1866], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.7ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2196], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2196], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$McSc9kigiAYbC3XVWKN3Gul2YSKqhloN4vMVbvkirYSOYjTEMKIiW"], ["created_at", "2019-12-12 00:24:02.846188"], ["updated_at", "2019-12-12 00:24:02.846188"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.863499"], ["last_sign_in_at", "2019-12-12 00:24:02.863499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.864009"], ["id", 2197]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2197], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.872382"], ["updated_at", "2019-12-12 00:24:02.872382"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.873914"], ["updated_at", "2019-12-12 00:24:02.873914"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1868], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2197], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2197], ["room_id", 1868], ["created_at", "2019-12-12 00:24:02.878565"], ["updated_at", "2019-12-12 00:24:02.878565"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2197], ["LIMIT", 1]] [1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1868], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.6ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2197], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2197], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$RUVZKMhC0QpZR5Z99HYtdegqftlax7XSYmkE7ZOmkxT.63zLSyYxK"], ["created_at", "2019-12-12 00:24:02.909139"], ["updated_at", "2019-12-12 00:24:02.909139"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:02.922607"], ["last_sign_in_at", "2019-12-12 00:24:02.922607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.923197"], ["id", 2198]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2198], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (1.3ms)
Completed 200 OK in 20ms (Views: 19.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:02.961691"], ["updated_at", "2019-12-12 00:24:02.961691"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1869], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2198], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2198], ["room_id", 1869], ["created_at", "2019-12-12 00:24:02.966690"], ["updated_at", "2019-12-12 00:24:02.966690"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2198], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2198]] Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 38ms (Views: 4.3ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1042” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1042"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1042], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1042]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2198], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$D42MlhUBi7M3xVBOSTcj3u3.5jkPawUC2Ijt8Q8LRprL2tUBxWvT2"], ["created_at", "2019-12-12 00:24:03.029873"], ["updated_at", "2019-12-12 00:24:03.029873"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.043017"], ["last_sign_in_at", "2019-12-12 00:24:03.043017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.043911"], ["id", 2199]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2199], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:03.053260"], ["updated_at", "2019-12-12 00:24:03.053260"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1870], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2199], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2199], ["room_id", 1870], ["created_at", "2019-12-12 00:24:03.058518"], ["updated_at", "2019-12-12 00:24:03.058518"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2199], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2199]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1043” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1043"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1043], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1043]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2199], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9s..xonhKImGsF4v4BYdne2yJXhc7GcndcHPSv8hyNqc/FEGtrslm"], ["created_at", "2019-12-12 00:24:03.091912"], ["updated_at", "2019-12-12 00:24:03.091912"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.110239"], ["last_sign_in_at", "2019-12-12 00:24:03.110239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.110936"], ["id", 2200]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2200], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.131443"], ["updated_at", "2019-12-12 00:24:03.131443"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1871], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2200], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2200], ["room_id", 1871], ["created_at", "2019-12-12 00:24:03.136332"], ["updated_at", "2019-12-12 00:24:03.136332"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2200], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2200]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$fg3yNLfDoHWPfwkPLNkPR.9e2/zyhzDWnY7kWRkx5TQ3t7dTvoO6K"], ["created_at", "2019-12-12 00:24:03.156580"], ["updated_at", "2019-12-12 00:24:03.156580"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.170461"], ["last_sign_in_at", "2019-12-12 00:24:03.170461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.171051"], ["id", 2201]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2201], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:03.180760"], ["updated_at", "2019-12-12 00:24:03.180760"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1872], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2201], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2201], ["room_id", 1872], ["created_at", "2019-12-12 00:24:03.185801"], ["updated_at", "2019-12-12 00:24:03.185801"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2201], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2201]] Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$/mqdE1vhQ4h3t3UnuN4YgOx6GwU1K3Nswj5oxdLh/Hya3460YnUna"], ["created_at", "2019-12-12 00:24:03.209561"], ["updated_at", "2019-12-12 00:24:03.209561"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.222855"], ["last_sign_in_at", "2019-12-12 00:24:03.222855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.223429"], ["id", 2202]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2202], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.237302"], ["updated_at", "2019-12-12 00:24:03.237302"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.239193"], ["updated_at", "2019-12-12 00:24:03.239193"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2202], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/1873” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1873"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1873], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1873')[0m
Rendered appointments/show.html.erb within layouts/application (1.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2202], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started POST “/appointments.1873” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-12", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2202], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1873], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2202], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2202], ["room_id", 1873], ["created_at", "2019-12-12 00:24:03.281077"], ["updated_at", "2019-12-12 00:24:03.281077"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2202], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$fjo5x0.zojL2ijCMAWKQx.tWoIprSgINmZKCLx91IUNnoW/XsUBNW"], ["created_at", "2019-12-12 00:24:03.396236"], ["updated_at", "2019-12-12 00:24:03.396236"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.410654"], ["last_sign_in_at", "2019-12-12 00:24:03.410654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.411414"], ["id", 2203]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2203], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.429574"], ["updated_at", "2019-12-12 00:24:03.429574"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.431438"], ["updated_at", "2019-12-12 00:24:03.431438"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2203], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.8ms) Started GET “/appointments/1875” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1875"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1875], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1875')[0m
Rendered appointments/show.html.erb within layouts/application (1.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2203], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 1.1ms) Started POST “/appointments.1875” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2203], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2203], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$s4wZlgBgJH2J7eElLwG92esyp9IicxT7wiGw/SeBEhmDI1Yz..ouy"], ["created_at", "2019-12-12 00:24:03.486876"], ["updated_at", "2019-12-12 00:24:03.486876"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.501095"], ["last_sign_in_at", "2019-12-12 00:24:03.501095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.501692"], ["id", 2204]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2204], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:24:03.513652"], ["updated_at", "2019-12-12 00:24:03.513652"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2204], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2204], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/1877” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1877"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2204], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1877], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1877]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2204], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$i2aLJ7gd89PPMy0gelAU0u4cSuKKm8arAySpsOMbIphqySZwHe.7q"], ["created_at", "2019-12-12 00:24:03.557009"], ["updated_at", "2019-12-12 00:24:03.557009"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:24:03.559071"], ["updated_at", "2019-12-12 00:24:03.559071"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.586364"], ["last_sign_in_at", "2019-12-12 00:24:03.586364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.586942"], ["id", 2205]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2205], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2205], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/rooms/1878/edit” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1878"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2205], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1878], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/1878” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"1878"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2205], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1878], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-12-12 00:24:03.658345"], ["id", 1878]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1878 Completed 302 Found in 9ms (ActiveRecord: 1.7ms) Started GET “/rooms/1878” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1878"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2205], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1878], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 20ms (Views: 2.1ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7Ta.oRmAJauuf.0g6X1y4O4dt.KpLk3WHAfhaTvAiDo0tCNI.jgOK"], ["created_at", "2019-12-12 00:24:03.701087"], ["updated_at", "2019-12-12 00:24:03.701087"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.714526"], ["last_sign_in_at", "2019-12-12 00:24:03.714526"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.715134"], ["id", 2206]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2206], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.728952"], ["updated_at", "2019-12-12 00:24:03.728952"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.730851"], ["updated_at", "2019-12-12 00:24:03.730851"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1880], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2206], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "18:00:00"], ["user_id", 2206], ["room_id", 1880], ["created_at", "2019-12-12 00:24:03.739708"], ["updated_at", "2019-12-12 00:24:03.739708"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2206], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms_available/1879” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1879"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1879], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1879')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.9ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2206], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 62ms (Views: 41.4ms | ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hro/PvgHPClPpOIH.FDhOedFVRFE0b4QszIIpGocyJ7kzWIAx2JW2"], ["created_at", "2019-12-12 00:24:03.838615"], ["updated_at", "2019-12-12 00:24:03.838615"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.853070"], ["last_sign_in_at", "2019-12-12 00:24:03.853070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.853717"], ["id", 2207]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2207], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.866886"], ["updated_at", "2019-12-12 00:24:03.866886"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.868847"], ["updated_at", "2019-12-12 00:24:03.868847"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2207], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/rooms_available/1881” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1881"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1881], ["LIMIT", 1]]
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1881')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2207], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rYhpSRJCXRxa6NMJr3aNLeAEcTQSaFm4A4UbF4oRmKocGYEqLrKZO"], ["created_at", "2019-12-12 00:24:03.912694"], ["updated_at", "2019-12-12 00:24:03.912694"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.926928"], ["last_sign_in_at", "2019-12-12 00:24:03.926928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.927668"], ["id", 2208]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2208], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.940565"], ["updated_at", "2019-12-12 00:24:03.940565"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.942676"], ["updated_at", "2019-12-12 00:24:03.942676"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2208], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$cCJN1IA0cfNxt4IedpGwvOktPE7G0ykRuKLNakzFq84pNA08X.AZK"], ["created_at", "2019-12-12 00:24:03.970977"], ["updated_at", "2019-12-12 00:24:03.970977"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:03.988391"], ["last_sign_in_at", "2019-12-12 00:24:03.988391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.988874"], ["id", 2209]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2209], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:04.000222"], ["updated_at", "2019-12-12 00:24:04.000222"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:04.001759"], ["updated_at", "2019-12-12 00:24:04.001759"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2209], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$Po9vBRmhKbDt68Anr1AqnOs0gZI8WdOtnTuDAdzOxLFPZkxLs8v6O"], ["created_at", "2019-12-12 00:24:04.029736"], ["updated_at", "2019-12-12 00:24:04.029736"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:04.057558"], ["last_sign_in_at", "2019-12-12 00:24:04.057558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:04.058151"], ["id", 2210]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2210], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (18.0ms)
Completed 200 OK in 115ms (Views: 114.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$.73LFo3PRe0BRtGCEhnbLee8Nu0cwgSIfe5LZ9gEP67sxJK9fZlU2"], ["created_at", "2019-12-12 00:24:04.261319"], ["updated_at", "2019-12-12 00:24:04.261319"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:24:04.263208"], ["last_sign_in_at", "2019-12-12 00:24:04.263208"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:24:04.263753"], ["id", 2211]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 89ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2211], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$kvAg4nyYo6H1LzJFbLFApOPj1rRhJ1whQAfLoZ2e0BTu6Cxrxc/.S"], ["created_at", "2019-12-12 00:24:04.364902"], ["updated_at", "2019-12-12 00:24:04.364902"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:24:04.392796"], ["last_sign_in_at", "2019-12-12 00:24:04.392796"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:04.393593"], ["id", 2212]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2212], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/users/2212/edit” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"2212"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2212], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.6ms) Started PUT “/users/2212” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"2212"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2212], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2212], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 2212], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-12-12 00:24:04.462826"], ["id", 2212]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 159ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2212], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$8qRtQk39OjVjNqukAS8lguHw7Ozi16S1LM8kyIihWBCG72Wmj/6uW"], ["created_at", "2019-12-12 00:25:46.953102"], ["updated_at", "2019-12-12 00:25:46.953102"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:46 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (44.7ms) Rendered users/sessions/new.html.erb within layouts/application (340.8ms)
Completed 200 OK in 504ms (Views: 496.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:47.548596"], ["last_sign_in_at", "2019-12-12 00:25:47.548596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:47.562157"], ["id", 2213]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 179ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2213], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 56ms (Views: 36.8ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2213], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2213], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (4.8ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 74ms (Views: 44.4ms | ActiveRecord: 3.3ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2213], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:25:47.880743"], ["updated_at", "2019-12-12 00:25:47.880743"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2213], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$61/n9uNSehfKTrx.ATu.xuDydWCXUQ9vEXwOHPein.ydj4aR9OISK"], ["created_at", "2019-12-12 00:25:47.901062"], ["updated_at", "2019-12-12 00:25:47.901062"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:47.917985"], ["last_sign_in_at", "2019-12-12 00:25:47.917985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:47.918625"], ["id", 2214]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2214], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2214], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2214], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (2.3ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2214], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:25:47.964012"], ["updated_at", "2019-12-12 00:25:47.964012"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2214], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (1.2ms)
Completed 200 OK in 36ms (Views: 19.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$LSbb88QmPC./S/ADzff2zeePO0XwbIgH9emRJ.V.X4555JHAxHQ3O"], ["created_at", "2019-12-12 00:25:48.036768"], ["updated_at", "2019-12-12 00:25:48.036768"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.3ms) Rendered users/sessions/new.html.erb within layouts/application (3.0ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.064522"], ["last_sign_in_at", "2019-12-12 00:25:48.064522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.065177"], ["id", 2215]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2215], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$xWVD60pOCped/ykODzLcL.wYUy8ROowPcwDa0vn2DAv5YOSD7fYye"], ["created_at", "2019-12-12 00:25:48.093553"], ["updated_at", "2019-12-12 00:25:48.093553"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.3ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$9Zsck6s0cxj88HSBjHc.TOWNQcjGwXYonLfstWv6HsYJ19E6y2K5e"], ["created_at", "2019-12-12 00:25:48.139396"], ["updated_at", "2019-12-12 00:25:48.139396"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.168736"], ["last_sign_in_at", "2019-12-12 00:25:48.168736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.169662"], ["id", 2217]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2217], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2217], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.0ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2217], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 75ms (Views: 41.8ms | ActiveRecord: 2.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$nAOSDdZ38OKZSKLktWWH..wa00p8PpLVlBuDgiM9bDTLM46e4wThC"], ["created_at", "2019-12-12 00:25:48.277484"], ["updated_at", "2019-12-12 00:25:48.277484"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.2ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.295650"], ["last_sign_in_at", "2019-12-12 00:25:48.295650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.296599"], ["id", 2218]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.6ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-12-12 00:25:48.332947"], ["updated_at", "2019-12-12 00:25:48.332947"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 3.6ms | ActiveRecord: 1.0ms) Started GET “/appointments/1889” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1889"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1889], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1889')[0m
Rendered appointments/show.html.erb within layouts/application (10.1ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 74ms (Views: 50.0ms | ActiveRecord: 1.4ms) Started POST “/appointments.1889” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-11", "start_time"=>"18:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1889], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2218], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 2218], ["room_id", 1889], ["created_at", "2019-12-12 00:25:48.511762"], ["updated_at", "2019-12-12 00:25:48.511762"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 41ms (ActiveRecord: 3.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1889], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2218], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (3.6ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2218], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 1.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$RHY/Uru5Iy1C4bjqYX5zYuIHi0FsP/N46xOiseLEZJ9e1jwCqoATO"], ["created_at", "2019-12-12 00:25:48.561017"], ["updated_at", "2019-12-12 00:25:48.561017"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.577471"], ["last_sign_in_at", "2019-12-12 00:25:48.577471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.578051"], ["id", 2219]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2219], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.589800"], ["updated_at", "2019-12-12 00:25:48.589800"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.592313"], ["updated_at", "2019-12-12 00:25:48.592313"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1891], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2219], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2219], ["room_id", 1891], ["created_at", "2019-12-12 00:25:48.602194"], ["updated_at", "2019-12-12 00:25:48.602194"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2219], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1891], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms) [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2219], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 26ms (Views: 6.0ms | ActiveRecord: 1.6ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2219], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 3.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Aov.XLeRpgLlTZfgzLfnSOC/YLzlHV4o0lJKMZEWhFWpxim6.uaha"], ["created_at", "2019-12-12 00:25:48.680952"], ["updated_at", "2019-12-12 00:25:48.680952"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.695313"], ["last_sign_in_at", "2019-12-12 00:25:48.695313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.696047"], ["id", 2220]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2220], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.705518"], ["updated_at", "2019-12-12 00:25:48.705518"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.707530"], ["updated_at", "2019-12-12 00:25:48.707530"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1893], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2220], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2220], ["room_id", 1893], ["created_at", "2019-12-12 00:25:48.712655"], ["updated_at", "2019-12-12 00:25:48.712655"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2220], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1893], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2220], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2220], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$uYBg9Xa/1TZ9njjJFB25r.qBF3bjV/ugar37if8.t1guCnFnUso2W"], ["created_at", "2019-12-12 00:25:48.742919"], ["updated_at", "2019-12-12 00:25:48.742919"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.758846"], ["last_sign_in_at", "2019-12-12 00:25:48.758846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.759506"], ["id", 2221]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2221], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.769479"], ["updated_at", "2019-12-12 00:25:48.769479"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.771307"], ["updated_at", "2019-12-12 00:25:48.771307"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1895], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2221], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2221], ["room_id", 1895], ["created_at", "2019-12-12 00:25:48.776323"], ["updated_at", "2019-12-12 00:25:48.776323"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2221], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1895], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.6ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2221], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2221], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qLh7X8B9sjndjIvj9n3TWe6P/P4ohSkmMPcib7GXIcIdxKJdUE8Lm"], ["created_at", "2019-12-12 00:25:48.815551"], ["updated_at", "2019-12-12 00:25:48.815551"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.833199"], ["last_sign_in_at", "2019-12-12 00:25:48.833199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.833753"], ["id", 2222]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2222], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.842519"], ["updated_at", "2019-12-12 00:25:48.842519"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.844328"], ["updated_at", "2019-12-12 00:25:48.844328"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1897], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2222], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2222], ["room_id", 1897], ["created_at", "2019-12-12 00:25:48.849392"], ["updated_at", "2019-12-12 00:25:48.849392"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2222], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1897], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2222], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2222], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$rcV7RpTlfvfDHoZ1zpPlzu/4ZpslbkxGzustJuOTFIFAndldjrF.m"], ["created_at", "2019-12-12 00:25:48.880031"], ["updated_at", "2019-12-12 00:25:48.880031"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:48.893242"], ["last_sign_in_at", "2019-12-12 00:25:48.893242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.893856"], ["id", 2223]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2223], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:48.931782"], ["updated_at", "2019-12-12 00:25:48.931782"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1898], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2223], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2223], ["room_id", 1898], ["created_at", "2019-12-12 00:25:48.936321"], ["updated_at", "2019-12-12 00:25:48.936321"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2223], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2223]] Rendered appointments/my_appointments.html.erb within layouts/application (2.5ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 38ms (Views: 4.2ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1053” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1053"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1053], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1053]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2223], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ulAyK8Ty0lRLQ9WqNk6tCeNCabILMEsfyks3CR5hi57rNOa5Mfpz."], ["created_at", "2019-12-12 00:25:48.999022"], ["updated_at", "2019-12-12 00:25:48.999022"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.012051"], ["last_sign_in_at", "2019-12-12 00:25:49.012051"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.012948"], ["id", 2224]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2224], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:49.022973"], ["updated_at", "2019-12-12 00:25:49.022973"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1899], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2224], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2224], ["room_id", 1899], ["created_at", "2019-12-12 00:25:49.028345"], ["updated_at", "2019-12-12 00:25:49.028345"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2224], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2224]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1054” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1054"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1054], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1054]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2224], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.4ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$d3yC5YZJEk6PHR6g5X5wXO/AuB6pUYY8UDpdv77LJr8rBRs.RDbJ6"], ["created_at", "2019-12-12 00:25:49.061387"], ["updated_at", "2019-12-12 00:25:49.061387"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.080559"], ["last_sign_in_at", "2019-12-12 00:25:49.080559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.081207"], ["id", 2225]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2225], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.101560"], ["updated_at", "2019-12-12 00:25:49.101560"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1900], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2225], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2225], ["room_id", 1900], ["created_at", "2019-12-12 00:25:49.106566"], ["updated_at", "2019-12-12 00:25:49.106566"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2225], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2225]] Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$KZNggL5Iwk7RZzzZD0r4huAo7sJJ4/DTiOiSK4C9WL/OzHvj04Yne"], ["created_at", "2019-12-12 00:25:49.127698"], ["updated_at", "2019-12-12 00:25:49.127698"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.141211"], ["last_sign_in_at", "2019-12-12 00:25:49.141211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.141824"], ["id", 2226]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2226], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:49.151638"], ["updated_at", "2019-12-12 00:25:49.151638"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1901], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2226], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2226], ["room_id", 1901], ["created_at", "2019-12-12 00:25:49.156845"], ["updated_at", "2019-12-12 00:25:49.156845"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2226], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2226]] Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$05Q/Crq7Vwo9.bXNf1q2yOuRL7/vDt5r3hB.lYv5hGrKpxQ8Q5xAW"], ["created_at", "2019-12-12 00:25:49.179920"], ["updated_at", "2019-12-12 00:25:49.179920"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.193869"], ["last_sign_in_at", "2019-12-12 00:25:49.193869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.194542"], ["id", 2227]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2227], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.208639"], ["updated_at", "2019-12-12 00:25:49.208639"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.210554"], ["updated_at", "2019-12-12 00:25:49.210554"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2227], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.9ms) Started GET “/appointments/1902” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1902"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1902], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1902')[0m
Rendered appointments/show.html.erb within layouts/application (1.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2227], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 1.0ms) Started POST “/appointments.1902” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-12", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2227], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1902], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2227], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2227], ["room_id", 1902], ["created_at", "2019-12-12 00:25:49.253080"], ["updated_at", "2019-12-12 00:25:49.253080"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2227], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$nozIbW6uQykvqe71.KT4BOHHpOe/bXCR/NYnlofRyffyW0woMll86"], ["created_at", "2019-12-12 00:25:49.271199"], ["updated_at", "2019-12-12 00:25:49.271199"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.285061"], ["last_sign_in_at", "2019-12-12 00:25:49.285061"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.285620"], ["id", 2228]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2228], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.299172"], ["updated_at", "2019-12-12 00:25:49.299172"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.300996"], ["updated_at", "2019-12-12 00:25:49.300996"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2228], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 1.0ms) Started GET “/appointments/1904” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1904"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1904], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1904')[0m
Rendered appointments/show.html.erb within layouts/application (1.7ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2228], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 1.1ms) Started POST “/appointments.1904” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2228], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2228], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$j5hepqZk2aggb5gpjZEEV.54t.Cyb9bFzdN/iHRmNiBVn7lKKbx92"], ["created_at", "2019-12-12 00:25:49.360874"], ["updated_at", "2019-12-12 00:25:49.360874"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.374177"], ["last_sign_in_at", "2019-12-12 00:25:49.374177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.374958"], ["id", 2229]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2229], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:25:49.386895"], ["updated_at", "2019-12-12 00:25:49.386895"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2229], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2229], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/1906” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1906"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2229], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1906], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1906]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2229], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$utLoIn9Y0cZh/7moJ7/AcOCfTL/AfB579L9UStrLup7xFtb2d8rTy"], ["created_at", "2019-12-12 00:25:49.430389"], ["updated_at", "2019-12-12 00:25:49.430389"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:25:49.432661"], ["updated_at", "2019-12-12 00:25:49.432661"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.459074"], ["last_sign_in_at", "2019-12-12 00:25:49.459074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.459711"], ["id", 2230]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2230], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2230], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started GET “/rooms/1907/edit” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1907"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2230], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1907], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/1907” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"1907"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2230], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1907], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-12-12 00:25:49.525826"], ["id", 1907]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1907 Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/rooms/1907” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1907"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2230], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1907], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$xJHNWTjfczo5u/HTVFvpL.pRbKgy1D3M5xcoOWX.7qH/YIIFWyT4S"], ["created_at", "2019-12-12 00:25:49.571011"], ["updated_at", "2019-12-12 00:25:49.571011"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.584817"], ["last_sign_in_at", "2019-12-12 00:25:49.584817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.585439"], ["id", 2231]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2231], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.599942"], ["updated_at", "2019-12-12 00:25:49.599942"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.602341"], ["updated_at", "2019-12-12 00:25:49.602341"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1909], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2231], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "18:00:00"], ["user_id", 2231], ["room_id", 1909], ["created_at", "2019-12-12 00:25:49.611776"], ["updated_at", "2019-12-12 00:25:49.611776"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2231], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms) Started GET “/rooms_available/1908” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1908"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1908], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1908')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.7ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2231], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 60ms (Views: 40.9ms | ActiveRecord: 1.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8/MTcOMWEf3h06jOuu51y.F1OkFm.vFVTwY0uS93RCRaKgYvhOcV6"], ["created_at", "2019-12-12 00:25:49.709269"], ["updated_at", "2019-12-12 00:25:49.709269"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.722600"], ["last_sign_in_at", "2019-12-12 00:25:49.722600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.723154"], ["id", 2232]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2232], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.736670"], ["updated_at", "2019-12-12 00:25:49.736670"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.738596"], ["updated_at", "2019-12-12 00:25:49.738596"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2232], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.9ms) Started GET “/rooms_available/1910” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1910"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1910], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1910')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2232], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 1.1ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$.uutXUis.noq7TMSakowIuZTJk3sJtv0GKTFuEew8GsL.uDZAzmkG"], ["created_at", "2019-12-12 00:25:49.784681"], ["updated_at", "2019-12-12 00:25:49.784681"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.798024"], ["last_sign_in_at", "2019-12-12 00:25:49.798024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.798849"], ["id", 2233]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2233], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.812728"], ["updated_at", "2019-12-12 00:25:49.812728"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.815362"], ["updated_at", "2019-12-12 00:25:49.815362"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2233], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GEXc/I8wQ.FTg2Wg4AT28uT6zZOve/8LBg/7f2vzsrlbVeMrpO6RC"], ["created_at", "2019-12-12 00:25:49.844800"], ["updated_at", "2019-12-12 00:25:49.844800"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.858712"], ["last_sign_in_at", "2019-12-12 00:25:49.858712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.859327"], ["id", 2234]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2234], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.876423"], ["updated_at", "2019-12-12 00:25:49.876423"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.878352"], ["updated_at", "2019-12-12 00:25:49.878352"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2234], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$1yskuLdbPoEq/8T4kgyVIOobgWGQUfc44RJpwUMs5lcXNDKal36s6"], ["created_at", "2019-12-12 00:25:49.908435"], ["updated_at", "2019-12-12 00:25:49.908435"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:49.941507"], ["last_sign_in_at", "2019-12-12 00:25:49.941507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.942071"], ["id", 2235]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2235], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.3ms) Rendered users/registrations/new.html.erb within layouts/application (18.7ms)
Completed 200 OK in 118ms (Views: 117.5ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$PcLGgm.BtyZm1b1RJosh7eBLyXdsqHu0R6Bo0tXHMangqqwOoIMvi"], ["created_at", "2019-12-12 00:25:50.133120"], ["updated_at", "2019-12-12 00:25:50.133120"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:25:50.135049"], ["last_sign_in_at", "2019-12-12 00:25:50.135049"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:25:50.135542"], ["id", 2236]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 89ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2236], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.6ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$RWig1O3mSTvY3b8GPYOEn.d8BXgu70htrohHFSaWwqoYLbmrhSZTq"], ["created_at", "2019-12-12 00:25:50.238796"], ["updated_at", "2019-12-12 00:25:50.238796"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:25:50.267671"], ["last_sign_in_at", "2019-12-12 00:25:50.267671"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:50.268370"], ["id", 2237]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2237], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/users/2237/edit” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"2237"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2237], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 25ms (Views: 23.2ms | ActiveRecord: 0.5ms) Started PUT “/users/2237” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"2237"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2237], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2237], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 2237], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-12-12 00:25:50.341269"], ["id", 2237]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 159ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2237], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (2.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$IdqtjnWWd0tnqcO/eenqjOWUBJ6EpL73C5xDJmpLgsNcs9F3Raft6"], ["created_at", "2019-12-12 00:57:19.653574"], ["updated_at", "2019-12-12 00:57:19.653574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.663346"], ["updated_at", "2019-12-12 00:57:19.663346"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2238], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 176ms (Views: 114.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y8URPu6UW8EI6.4GkY7SpuxyXwohomkEA7ya2gFA4LbpQshwXPngW"], ["created_at", "2019-12-12 00:57:19.851420"], ["updated_at", "2019-12-12 00:57:19.851420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.854028"], ["updated_at", "2019-12-12 00:57:19.854028"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.9ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1917], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2239], ["LIMIT", 1]]
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2239], ["room_id", 1917], ["created_at", "2019-12-12 00:57:19.898361"], ["updated_at", "2019-12-12 00:57:19.898361"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2239], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (2.0ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2239], ["id", 1059], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$P./mt3DVe1wdWGMGulIbGu/QrX6K7F/hPF3GkfgcHMSTsKL8Wl87."], ["created_at", "2019-12-12 00:57:19.917847"], ["updated_at", "2019-12-12 00:57:19.917847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.920417"], ["updated_at", "2019-12-12 00:57:19.920417"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1918], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2240], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2240], ["room_id", 1918], ["created_at", "2019-12-12 00:57:19.924751"], ["updated_at", "2019-12-12 00:57:19.924751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2240], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2240], ["id", 1060], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$hSS389q.5TMQMoSnCm83ceyplyoczeytWDY0diEHE42zWiXMk1HD2"], ["created_at", "2019-12-12 00:57:19.936966"], ["updated_at", "2019-12-12 00:57:19.936966"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.939311"], ["updated_at", "2019-12-12 00:57:19.939311"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1919], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2241], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2241], ["room_id", 1919], ["created_at", "2019-12-12 00:57:19.944340"], ["updated_at", "2019-12-12 00:57:19.944340"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2241], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36mAppointment Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3[0m [["user_id", 2241], ["id", 1061], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$WZvAe45DAGjUmDkjksX6VugwhSWxPgqTUM/biaNlDssGSTIexm8Za"], ["created_at", "2019-12-12 00:57:19.957625"], ["updated_at", "2019-12-12 00:57:19.957625"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.960719"], ["updated_at", "2019-12-12 00:57:19.960719"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1920"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1920], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1920')[0m
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Completed 200 OK in 110ms (Views: 76.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$BikNwEswgJXmcwNdL7SOQOprh/eN7OzeXi5XivoBU5V07ttGoSRdO"], ["created_at", "2019-12-12 00:57:20.079777"], ["updated_at", "2019-12-12 00:57:20.079777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.082236"], ["updated_at", "2019-12-12 00:57:20.082236"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1921], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2243], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2243], ["room_id", 1921], ["created_at", "2019-12-12 00:57:20.086643"], ["updated_at", "2019-12-12 00:57:20.086643"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1921"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1921], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1921')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$wKuDSshyytW2gGTX7CEd/.kHDiUSVIsuhAfh4Tzd9bZJWx08MK5l2"], ["created_at", "2019-12-12 00:57:20.098267"], ["updated_at", "2019-12-12 00:57:20.098267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.100658"], ["updated_at", "2019-12-12 00:57:20.100658"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1922], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2244], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2244], ["room_id", 1922], ["created_at", "2019-12-12 00:57:20.104862"], ["updated_at", "2019-12-12 00:57:20.104862"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1922"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1922], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1922')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$PtczODYfheEdIrbKcT894utwEMfe4M1qtyD/E2TVuvCXbNVBhsYeq"], ["created_at", "2019-12-12 00:57:20.116873"], ["updated_at", "2019-12-12 00:57:20.116873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.119121"], ["updated_at", "2019-12-12 00:57:20.119121"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1923], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2245], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2245], ["room_id", 1923], ["created_at", "2019-12-12 00:57:20.123665"], ["updated_at", "2019-12-12 00:57:20.123665"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1923"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1923], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1923')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$aRWcS8V5/UF7thI2ysjwd.CdPqzoRFg7nlkRdmqjvoJSbYqdz71r2"], ["created_at", "2019-12-12 00:57:20.136342"], ["updated_at", "2019-12-12 00:57:20.136342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.138721"], ["updated_at", "2019-12-12 00:57:20.138721"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1924], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2246], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2246], ["room_id", 1924], ["created_at", "2019-12-12 00:57:20.143394"], ["updated_at", "2019-12-12 00:57:20.143394"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1924"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1924], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1924')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 108ms (Views: 75.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$nMNU5Xz.8QoAoCIsk.lM3.FaL8HD/0YNxPKJ.5slgzuG072ib.fN."], ["created_at", "2019-12-12 00:57:20.804126"], ["updated_at", "2019-12-12 00:57:20.804126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.806504"], ["updated_at", "2019-12-12 00:57:20.806504"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.824491"], ["last_sign_in_at", "2019-12-12 00:57:20.824491"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.825139"], ["id", 2247]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1925"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1925], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2247], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2247], ["room_id", 1925], ["created_at", "2019-12-12 00:57:20.833187"], ["updated_at", "2019-12-12 00:57:20.833187"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1925], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$ymcv86QAQau7IvUflQq2IedR1fZKCdOLFTap.6V3Qmc2Muss7bGOm"], ["created_at", "2019-12-12 00:57:20.842875"], ["updated_at", "2019-12-12 00:57:20.842875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.845287"], ["updated_at", "2019-12-12 00:57:20.845287"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.847919"], ["last_sign_in_at", "2019-12-12 00:57:20.847919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.848442"], ["id", 2248]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1926"}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1926], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2248], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2248], ["room_id", 1926], ["created_at", "2019-12-12 00:57:20.853434"], ["updated_at", "2019-12-12 00:57:20.853434"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$fkIDPgeD/wGz0EeFzBwWAepmxMmJANHAe9s8bTwkRBEfuzex6ju1W"], ["created_at", "2019-12-12 00:57:20.862314"], ["updated_at", "2019-12-12 00:57:20.862314"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.864673"], ["updated_at", "2019-12-12 00:57:20.864673"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.867326"], ["last_sign_in_at", "2019-12-12 00:57:20.867326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.867897"], ["id", 2249]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1927"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 1927], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$UST21x5B.Bqtq6OSbuqXVOxCpVtch4pfozwe6S4r3F/JC0DrmsMJW"], ["created_at", "2019-12-12 00:57:20.876961"], ["updated_at", "2019-12-12 00:57:20.876961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.879322"], ["updated_at", "2019-12-12 00:57:20.879322"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.881764"], ["last_sign_in_at", "2019-12-12 00:57:20.881764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.882325"], ["id", 2250]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1928"}
Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$VZmnzso74kHGhoYIQIeSEeDoSOlrkQCAWqqqT1KnUw7APLFTD74qS"], ["created_at", "2019-12-12 00:57:20.892542"], ["updated_at", "2019-12-12 00:57:20.892542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.894910"], ["updated_at", "2019-12-12 00:57:20.894910"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1929], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2251], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2251], ["room_id", 1929], ["created_at", "2019-12-12 00:57:20.898883"], ["updated_at", "2019-12-12 00:57:20.898883"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/1929” for 127.0.0.1 at 2019-12-11 21:57:20 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.901364"], ["last_sign_in_at", "2019-12-12 00:57:20.901364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.901943"], ["id", 2251]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1929"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1929], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1929')[0m
Rendered appointments/show.html.erb within layouts/application (25.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 496ms (Views: 478.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$7rIPdQNhWxTNJvCEYlyDX.wLgWtpwb2mf2DUy/EKjJoPjTQCJxK8q"], ["created_at", "2019-12-12 00:57:21.408151"], ["updated_at", "2019-12-12 00:57:21.408151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.410878"], ["updated_at", "2019-12-12 00:57:21.410878"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1930], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2252], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2252], ["room_id", 1930], ["created_at", "2019-12-12 00:57:21.415280"], ["updated_at", "2019-12-12 00:57:21.415280"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1930], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2252], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2252], ["room_id", 1930], ["created_at", "2019-12-12 00:57:21.419353"], ["updated_at", "2019-12-12 00:57:21.419353"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.421820"], ["last_sign_in_at", "2019-12-12 00:57:21.421820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.422383"], ["id", 2252]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2252]] Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 22ms (Views: 4.8ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$qNNNWziJ5FglURMJvtKOGeql/gq1iT0mWun9esfdLDm0no8mJxTFK"], ["created_at", "2019-12-12 00:57:21.453135"], ["updated_at", "2019-12-12 00:57:21.453135"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.455552"], ["updated_at", "2019-12-12 00:57:21.455552"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1931], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2253], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2253], ["room_id", 1931], ["created_at", "2019-12-12 00:57:21.459962"], ["updated_at", "2019-12-12 00:57:21.459962"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1931], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2253], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2253], ["room_id", 1931], ["created_at", "2019-12-12 00:57:21.464378"], ["updated_at", "2019-12-12 00:57:21.464378"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.466732"], ["last_sign_in_at", "2019-12-12 00:57:21.466732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.467379"], ["id", 2253]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2253]] Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$04$t9rfWIClktxFb/ssxFAcyuIXc8lDM3GZx8KwoNQlQkrDE8NM4Mym2"], ["created_at", "2019-12-12 00:57:21.481551"], ["updated_at", "2019-12-12 00:57:21.481551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.483849"], ["updated_at", "2019-12-12 00:57:21.483849"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1932], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2254], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2254], ["room_id", 1932], ["created_at", "2019-12-12 00:57:21.487919"], ["updated_at", "2019-12-12 00:57:21.487919"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/1073” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.490458"], ["last_sign_in_at", "2019-12-12 00:57:21.490458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.490994"], ["id", 2254]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1073"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1073], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1073]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XmzlzNd/4W0IXrYIJf0jd.anb8K9x0BZgx55KZf0KWRkWSB/km.Eq"], ["created_at", "2019-12-12 00:57:21.505640"], ["updated_at", "2019-12-12 00:57:21.505640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.508169"], ["last_sign_in_at", "2019-12-12 00:57:21.508169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.509053"], ["id", 2255]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms) Rendered layouts/_header-admin.html.erb (1.3ms)
Completed 200 OK in 39ms (Views: 19.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mMWGKjGkebihNPWfL0Yh2.LNFrhhzevQl1XwUxJTduHfUwmQ19jEy"], ["created_at", "2019-12-12 00:57:21.559327"], ["updated_at", "2019-12-12 00:57:21.559327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.562396"], ["updated_at", "2019-12-12 00:57:21.562396"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1933], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2256], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2256], ["room_id", 1933], ["created_at", "2019-12-12 00:57:21.566911"], ["updated_at", "2019-12-12 00:57:21.566911"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1933], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2256], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2256], ["room_id", 1933], ["created_at", "2019-12-12 00:57:21.571080"], ["updated_at", "2019-12-12 00:57:21.571080"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.574599"], ["last_sign_in_at", "2019-12-12 00:57:21.574599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.575274"], ["id", 2256]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1933], ["LIMIT", 1]] [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2256], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2256], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$luA3tKneiDfqEdq6bc5XiuJc53KqcpHmbdOYwPJ.d9oPqe1Aaf1V2"], ["created_at", "2019-12-12 00:57:21.589345"], ["updated_at", "2019-12-12 00:57:21.589345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.591691"], ["updated_at", "2019-12-12 00:57:21.591691"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1934], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2257], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2257], ["room_id", 1934], ["created_at", "2019-12-12 00:57:21.596508"], ["updated_at", "2019-12-12 00:57:21.596508"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1934], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2257], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2257], ["room_id", 1934], ["created_at", "2019-12-12 00:57:21.600722"], ["updated_at", "2019-12-12 00:57:21.600722"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.603116"], ["last_sign_in_at", "2019-12-12 00:57:21.603116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.603674"], ["id", 2257]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1934], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2257], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2257], ["LIMIT", 1]] Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hfHX01GKB8I8oWWgyqPzH.mIKcMYsgsSn21ToA4S7n7mz5Rz62VBW"], ["created_at", "2019-12-12 00:57:21.619483"], ["updated_at", "2019-12-12 00:57:21.619483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.621971"], ["updated_at", "2019-12-12 00:57:21.621971"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1935], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2258], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2258], ["room_id", 1935], ["created_at", "2019-12-12 00:57:21.626718"], ["updated_at", "2019-12-12 00:57:21.626718"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1935], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2258], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2258], ["room_id", 1935], ["created_at", "2019-12-12 00:57:21.630924"], ["updated_at", "2019-12-12 00:57:21.630924"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.633467"], ["last_sign_in_at", "2019-12-12 00:57:21.633467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.633988"], ["id", 2258]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$H3INtTInXhufqz1JtiwD8.ZZpPEyUQsiMphvfT8EvkJUk0FMTwMHy"], ["created_at", "2019-12-12 00:57:21.645983"], ["updated_at", "2019-12-12 00:57:21.645983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.648434"], ["updated_at", "2019-12-12 00:57:21.648434"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1936], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2259], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2259], ["room_id", 1936], ["created_at", "2019-12-12 00:57:21.652473"], ["updated_at", "2019-12-12 00:57:21.652473"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1936], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2259], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2259], ["room_id", 1936], ["created_at", "2019-12-12 00:57:21.656645"], ["updated_at", "2019-12-12 00:57:21.656645"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.659477"], ["last_sign_in_at", "2019-12-12 00:57:21.659477"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.660094"], ["id", 2259]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EWrR3oglfXnMJ9a87ygSFewL91a73q/QKdkl0.Kz5VLzFGLy.CA/a"], ["created_at", "2019-12-12 00:57:21.674344"], ["updated_at", "2019-12-12 00:57:21.674344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.677478"], ["last_sign_in_at", "2019-12-12 00:57:21.677478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.678074"], ["id", 2260]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (10.6ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 67ms (Views: 50.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xiY0QfYPNt1gkJAbSQeHJ.QKQogIEaTIWYn4awyqOozzylf1sSZWK"], ["created_at", "2019-12-12 00:57:21.757678"], ["updated_at", "2019-12-12 00:57:21.757678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.760329"], ["last_sign_in_at", "2019-12-12 00:57:21.760329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.760848"], ["id", 2261]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WX/GAr0.9orUtDOBUi37Zu5WhR22nvpzpgzrRCxtvmVylgtw7RE.a"], ["created_at", "2019-12-12 00:57:21.771074"], ["updated_at", "2019-12-12 00:57:21.771074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.773676"], ["last_sign_in_at", "2019-12-12 00:57:21.773676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.774243"], ["id", 2262]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cs2s1FAru35YYtSbROYh0eiOP.Dem.e.17n8pqNGLnXM7xcIGbZ2a"], ["created_at", "2019-12-12 00:57:21.803864"], ["updated_at", "2019-12-12 00:57:21.803864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.806309"], ["last_sign_in_at", "2019-12-12 00:57:21.806309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.806859"], ["id", 2263]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B5hrYpx43kY3JGdl4h7kw.jhR4Ljy1sDLGt/ssTjsNVLGmNlScroa"], ["created_at", "2019-12-12 00:57:21.836606"], ["updated_at", "2019-12-12 00:57:21.836606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.838929"], ["updated_at", "2019-12-12 00:57:21.838929"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1937” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.841257"], ["last_sign_in_at", "2019-12-12 00:57:21.841257"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.842090"], ["id", 2264]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1937"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1937], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$515yy/Sia7AsgEqyuUF1R.0nZJnXwjPDN1nV8cKNGMqMmye2bC6Ri"], ["created_at", "2019-12-12 00:57:21.871677"], ["updated_at", "2019-12-12 00:57:21.871677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.873934"], ["updated_at", "2019-12-12 00:57:21.873934"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1938” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.876328"], ["last_sign_in_at", "2019-12-12 00:57:21.876328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.877041"], ["id", 2265]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"1938"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1938], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.887275"], ["updated_at", "2019-12-12 00:57:21.887275"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1939” for 127.0.0.1 at 2019-12-11 21:57:21 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1939"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IM3gmU8fEu6iA3SzgCuae.RlBEieVHK9GsNmwJ6JB6Z.1Q9YEo8Hm"], ["created_at", "2019-12-12 00:57:21.898651"], ["updated_at", "2019-12-12 00:57:21.898651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.900954"], ["updated_at", "2019-12-12 00:57:21.900954"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1940/edit” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.903133"], ["last_sign_in_at", "2019-12-12 00:57:21.903133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.903730"], ["id", 2266]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1940"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1940], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 22ms (Views: 3.9ms | ActiveRecord: 0.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v34.Nen/MVAyCm2j2pYaruHv7/szF7tjOCgcjxU4xI3FpfOZjpL5C"], ["created_at", "2019-12-12 00:57:21.934611"], ["updated_at", "2019-12-12 00:57:21.934611"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.937128"], ["updated_at", "2019-12-12 00:57:21.937128"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1941/edit” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.939579"], ["last_sign_in_at", "2019-12-12 00:57:21.939579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.940166"], ["id", 2267]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1941"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1941], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.951345"], ["updated_at", "2019-12-12 00:57:21.951345"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/1942” for 127.0.0.1 at 2019-12-11 21:57:21 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1942"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jA5jtUhycPED06PUY1Aczey2kZbqzLqTPiNBU5c9YyfTzabRerHfa"], ["created_at", "2019-12-12 00:57:21.963969"], ["updated_at", "2019-12-12 00:57:21.963969"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.967051"], ["last_sign_in_at", "2019-12-12 00:57:21.967051"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.967649"], ["id", 2268]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.971213"], ["updated_at", "2019-12-12 00:57:21.971213"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QKfcx1JLdNYNLnVBe4kU7ukCIl6a1y8dNM9rEs1USFNcjN7AMSeJi"], ["created_at", "2019-12-12 00:57:21.980156"], ["updated_at", "2019-12-12 00:57:21.980156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.982860"], ["last_sign_in_at", "2019-12-12 00:57:21.982860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.983369"], ["id", 2269]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.986865"], ["updated_at", "2019-12-12 00:57:21.986865"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BRY9Ze6IQA5hlhuS3ssXdO2QVAmQ9Ldc5Q9/Twj2lfRAYZi1EbGGO"], ["created_at", "2019-12-12 00:57:21.995865"], ["updated_at", "2019-12-12 00:57:21.995865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.998907"], ["last_sign_in_at", "2019-12-12 00:57:21.998907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.999529"], ["id", 2270]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fC5hVggyWQ7A8elkWM5/7u7CMZEssoeQ0ff.BdCv7h3rKiQpZDP8O"], ["created_at", "2019-12-12 00:57:22.011184"], ["updated_at", "2019-12-12 00:57:22.011184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.013906"], ["last_sign_in_at", "2019-12-12 00:57:22.013906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.014420"], ["id", 2271]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nd2U4Y1bXFb4Ozp5YIdvXuJSt95Lzfn6XCzs85YCObcZaJzPxgLUi"], ["created_at", "2019-12-12 00:57:22.026146"], ["updated_at", "2019-12-12 00:57:22.026146"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.029028"], ["last_sign_in_at", "2019-12-12 00:57:22.029028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.029577"], ["id", 2272]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8YwzfRB5gtNeHUNaDjJPm.VSMPHkoVAfao84kze4z7Ccgn.cRbqSO"], ["created_at", "2019-12-12 00:57:22.040668"], ["updated_at", "2019-12-12 00:57:22.040668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.043871"], ["updated_at", "2019-12-12 00:57:22.043871"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1945” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.046423"], ["last_sign_in_at", "2019-12-12 00:57:22.046423"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.046937"], ["id", 2273]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1945"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1945], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:57:22.051080"], ["id", 1945]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1945 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rmXi56PRDhI90eLaeB4YNuJ3NVIfzVedPKdqmu08zJAKXidFLYHsS"], ["created_at", "2019-12-12 00:57:22.060067"], ["updated_at", "2019-12-12 00:57:22.060067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.062574"], ["updated_at", "2019-12-12 00:57:22.062574"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1946” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.065094"], ["last_sign_in_at", "2019-12-12 00:57:22.065094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.065669"], ["id", 2274]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1946"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1946], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:57:22.069688"], ["id", 1946]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1946 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4GMgyz9Wmol69AAjQWA.Ke6aKzruHHEXg6pFDV9Cf6FtxDvhGmmDC"], ["created_at", "2019-12-12 00:57:22.078762"], ["updated_at", "2019-12-12 00:57:22.078762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.081090"], ["updated_at", "2019-12-12 00:57:22.081090"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1947” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.083734"], ["last_sign_in_at", "2019-12-12 00:57:22.083734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.084280"], ["id", 2275]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1947"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1947], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PYZmilgfZs3NQkAb.Jd/puJfLC/9vE0mNkce0l1yFwGAUUvzRrTj."], ["created_at", "2019-12-12 00:57:22.099646"], ["updated_at", "2019-12-12 00:57:22.099646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.102038"], ["updated_at", "2019-12-12 00:57:22.102038"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/1948” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.104566"], ["last_sign_in_at", "2019-12-12 00:57:22.104566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.105139"], ["id", 2276]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1948"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1948], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kvtuoC.MsuqHfF4U7DN9Ret9YPnmktb53UB8Xlxh1Lu9sWrAAUMQG"], ["created_at", "2019-12-12 00:57:22.120955"], ["updated_at", "2019-12-12 00:57:22.120955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.123712"], ["last_sign_in_at", "2019-12-12 00:57:22.123712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.124253"], ["id", 2277]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BPaYkH1Y7FLvarXu2k6me.my.2PkoScvRcb6M8ueb3j5BFI1M3a46"], ["created_at", "2019-12-12 00:57:22.136228"], ["updated_at", "2019-12-12 00:57:22.136228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.139082"], ["updated_at", "2019-12-12 00:57:22.139082"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1949” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.141111"], ["last_sign_in_at", "2019-12-12 00:57:22.141111"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.141640"], ["id", 2278]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1949"}
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1949], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1949]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nRLNteyryeHl6kLC9TmHa.EhJtd0CbGsh8.fMFBx3sIYhxkhFuB3."], ["created_at", "2019-12-12 00:57:22.153551"], ["updated_at", "2019-12-12 00:57:22.153551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.155935"], ["updated_at", "2019-12-12 00:57:22.155935"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1950” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.158013"], ["last_sign_in_at", "2019-12-12 00:57:22.158013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.158914"], ["id", 2279]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1950"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1950], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1950]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cITz0KaPPVSIgNS6LuIQcuNI28oejgGdSsVLDFINzVZmn1iQp3sC6"], ["created_at", "2019-12-12 00:57:22.171816"], ["updated_at", "2019-12-12 00:57:22.171816"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.174535"], ["updated_at", "2019-12-12 00:57:22.174535"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1951” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.176976"], ["last_sign_in_at", "2019-12-12 00:57:22.176976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.177525"], ["id", 2280]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1951"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SdnrNoxk2.ZL/oNYpAs5iOeCafjJTcZxny8TqyeX/.qkKgro2FjeK"], ["created_at", "2019-12-12 00:57:22.187045"], ["updated_at", "2019-12-12 00:57:22.187045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.189366"], ["updated_at", "2019-12-12 00:57:22.189366"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/1952” for 127.0.0.1 at 2019-12-11 21:57:22 -0300
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.191464"], ["last_sign_in_at", "2019-12-12 00:57:22.191464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.192243"], ["id", 2281]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1952"}
Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VSB5EK/gHHCJBIHE4pLW7u/gBwKs18Iy4pvGZ3egfV84FYpG7bJ2."], ["created_at", "2019-12-12 00:57:46.201763"], ["updated_at", "2019-12-12 00:57:46.201763"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:46 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (49.1ms) Rendered users/sessions/new.html.erb within layouts/application (345.1ms)
Completed 200 OK in 508ms (Views: 500.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:46 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:46.801577"], ["last_sign_in_at", "2019-12-12 00:57:46.801577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:46.815172"], ["id", 2282]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 181ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:46 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2282], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms) Rendered layouts/_header-admin.html.erb (1.2ms)
Completed 200 OK in 58ms (Views: 37.5ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2282], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2282], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (5.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 75ms (Views: 46.7ms | ActiveRecord: 2.9ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2282], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:57:47.139956"], ["updated_at", "2019-12-12 00:57:47.139956"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2282], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eKghZD0vCnM9NpB2X3rTRe70xegsLvq3m35aIcTbOXFZi4FOoSS1K"], ["created_at", "2019-12-12 00:57:47.163064"], ["updated_at", "2019-12-12 00:57:47.163064"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:47.184467"], ["last_sign_in_at", "2019-12-12 00:57:47.184467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.185502"], ["id", 2283]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2283], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2283], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2283], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (3.4ms) Rendered layouts/_header-admin.html.erb (1.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2283], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:57:47.235910"], ["updated_at", "2019-12-12 00:57:47.235910"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2283], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (1.6ms)
Completed 200 OK in 40ms (Views: 22.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$07.Mu550NAMaItl5igXXs.dvCeP4EINYSBMilz6weTBGfgDv7snsu"], ["created_at", "2019-12-12 00:57:47.316502"], ["updated_at", "2019-12-12 00:57:47.316502"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.5ms) Rendered users/sessions/new.html.erb within layouts/application (3.2ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:47.346670"], ["last_sign_in_at", "2019-12-12 00:57:47.346670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.347312"], ["id", 2284]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2284], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$dlosy7wNYG46GodflGyXtOogB0oMyZ/0x6tQjHirSPVqp8wAbH63C"], ["created_at", "2019-12-12 00:57:47.381280"], ["updated_at", "2019-12-12 00:57:47.381280"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.1ms) Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$XX9lcPw2Y37JXA6wYElG0e9s0IE8BgQw6/veryCuXqD5ehlWq0Ium"], ["created_at", "2019-12-12 00:57:47.430952"], ["updated_at", "2019-12-12 00:57:47.430952"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:47.460741"], ["last_sign_in_at", "2019-12-12 00:57:47.460741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.461769"], ["id", 2286]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2286], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2286], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.4ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2286], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 81ms (Views: 46.1ms | ActiveRecord: 2.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Y2P9SasH6usA4Qs0x.VT.eG.i/I9IDy0fxlZy5uGXB80FLSE5Uh0O"], ["created_at", "2019-12-12 00:57:47.578980"], ["updated_at", "2019-12-12 00:57:47.578980"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.8ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:47.596008"], ["last_sign_in_at", "2019-12-12 00:57:47.596008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.596672"], ["id", 2287]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-12-12 00:57:47.634523"], ["updated_at", "2019-12-12 00:57:47.634523"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 24ms (Views: 3.9ms | ActiveRecord: 1.0ms) Started GET “/appointments/1955” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1955"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1955], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1955')[0m
Rendered appointments/show.html.erb within layouts/application (11.9ms)
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 77ms (Views: 53.6ms | ActiveRecord: 1.6ms) Started POST “/appointments.1955” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-11", "start_time"=>"18:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1955], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2287], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 2287], ["room_id", 1955], ["created_at", "2019-12-12 00:57:47.828803"], ["updated_at", "2019-12-12 00:57:47.828803"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 48ms (ActiveRecord: 3.8ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by TodayAppointmentsController#index as HTML
Rendering today_appointments/index.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)[0m [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1955], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2287], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (3.6ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2287], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 1.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$fhrLNwBB1kcxfXwsNx1lMui9vwjJ2hE6tjHCl.WeYrAGHzkunG7JO"], ["created_at", "2019-12-12 00:57:47.885597"], ["updated_at", "2019-12-12 00:57:47.885597"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (2.0ms) Rendered users/sessions/new.html.erb within layouts/application (3.1ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:47.903192"], ["last_sign_in_at", "2019-12-12 00:57:47.903192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.903772"], ["id", 2288]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2288], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:47.915647"], ["updated_at", "2019-12-12 00:57:47.915647"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:47.917587"], ["updated_at", "2019-12-12 00:57:47.917587"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1957], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2288], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2288], ["room_id", 1957], ["created_at", "2019-12-12 00:57:47.926540"], ["updated_at", "2019-12-12 00:57:47.926540"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2288], ["LIMIT", 1]] [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1957], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (4.4ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2288], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 26ms (Views: 6.2ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2288], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 22ms (Views: 3.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$YoFXSbxZyGrIG2UznE.6Qut.BlhTUXiX/XeHH7L29ykEV1Lw.wj1m"], ["created_at", "2019-12-12 00:57:48.004066"], ["updated_at", "2019-12-12 00:57:48.004066"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.7ms) Rendered users/sessions/new.html.erb within layouts/application (2.8ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.019322"], ["last_sign_in_at", "2019-12-12 00:57:48.019322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.019851"], ["id", 2289]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2289], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:48.029436"], ["updated_at", "2019-12-12 00:57:48.029436"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.031228"], ["updated_at", "2019-12-12 00:57:48.031228"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1959], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2289], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2289], ["room_id", 1959], ["created_at", "2019-12-12 00:57:48.036280"], ["updated_at", "2019-12-12 00:57:48.036280"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2289], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1959], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2289], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2289], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$vv2ahEnGME1ubo30hpVOz.TZU7mi27jCl5mDG2bveRd3x9iqtgn0e"], ["created_at", "2019-12-12 00:57:48.066530"], ["updated_at", "2019-12-12 00:57:48.066530"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.081209"], ["last_sign_in_at", "2019-12-12 00:57:48.081209"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.081763"], ["id", 2290]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2290], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:48.090890"], ["updated_at", "2019-12-12 00:57:48.090890"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.092969"], ["updated_at", "2019-12-12 00:57:48.092969"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1961], ["LIMIT", 1]]
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2290], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2290], ["room_id", 1961], ["created_at", "2019-12-12 00:57:48.097849"], ["updated_at", "2019-12-12 00:57:48.097849"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2290], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1961], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2290], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2290], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$YZdA5cpttFkcJc4j8BA6wO/g5NZ.nxgICVIBLhpzhGsVANkdHu6Ga"], ["created_at", "2019-12-12 00:57:48.140748"], ["updated_at", "2019-12-12 00:57:48.140748"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.159774"], ["last_sign_in_at", "2019-12-12 00:57:48.159774"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.160756"], ["id", 2291]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2291], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:48.171531"], ["updated_at", "2019-12-12 00:57:48.171531"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.173613"], ["updated_at", "2019-12-12 00:57:48.173613"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1963], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2291], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2291], ["room_id", 1963], ["created_at", "2019-12-12 00:57:48.180059"], ["updated_at", "2019-12-12 00:57:48.180059"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2291], ["LIMIT", 1]] [1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1963], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (2.6ms) [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2291], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendering appointments/conflicting_appointments.html.erb within layouts/application Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms) [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2291], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 1.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$o.hGmffre2e9ayRIGkPmm.TK5i40y2bHOyIt.ENd5FoO391fbehji"], ["created_at", "2019-12-12 00:57:48.214015"], ["updated_at", "2019-12-12 00:57:48.214015"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.227677"], ["last_sign_in_at", "2019-12-12 00:57:48.227677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.228781"], ["id", 2292]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2292], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (1.2ms)
Completed 200 OK in 21ms (Views: 20.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.269471"], ["updated_at", "2019-12-12 00:57:48.269471"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1964], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2292], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2292], ["room_id", 1964], ["created_at", "2019-12-12 00:57:48.274774"], ["updated_at", "2019-12-12 00:57:48.274774"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2292], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2292]] Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 43ms (Views: 4.6ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/1087” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1087"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1087], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1087]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2292], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$325ngxXd/KKM07hqR22OTeKaza2lTLtDip.wraATxIDCIo7qhnEEK"], ["created_at", "2019-12-12 00:57:48.349216"], ["updated_at", "2019-12-12 00:57:48.349216"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.6ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.365722"], ["last_sign_in_at", "2019-12-12 00:57:48.365722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.366643"], ["id", 2293]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2293], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.376970"], ["updated_at", "2019-12-12 00:57:48.376970"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1965], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2293], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2293], ["room_id", 1965], ["created_at", "2019-12-12 00:57:48.383888"], ["updated_at", "2019-12-12 00:57:48.383888"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2293], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2293]] Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms) Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1088” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"1088"}
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 1088], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "appointments" WHERE "appointments"."id" = $1[0m [["id", 1088]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2293], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$uVKnkdkCWRml6sOqH5EGYuEd6U4fKuHKSjs2Vkkpyq3AgHWOt6guS"], ["created_at", "2019-12-12 00:57:48.419952"], ["updated_at", "2019-12-12 00:57:48.419952"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.439480"], ["last_sign_in_at", "2019-12-12 00:57:48.439480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.440136"], ["id", 2294]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2294], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.460830"], ["updated_at", "2019-12-12 00:57:48.460830"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1966], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2294], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2294], ["room_id", 1966], ["created_at", "2019-12-12 00:57:48.466293"], ["updated_at", "2019-12-12 00:57:48.466293"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2294], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2294]] Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "xela@email.com"], ["encrypted_password", "$2a$04$WlTP7GacRFImBTG3djKlOuPF7X4GAg/kYp8d0DvwgiUR01OUwPFie"], ["created_at", "2019-12-12 00:57:48.487335"], ["updated_at", "2019-12-12 00:57:48.487335"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.7ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "xela@email.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.501668"], ["last_sign_in_at", "2019-12-12 00:57:48.501668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.502263"], ["id", 2295]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2295], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.512604"], ["updated_at", "2019-12-12 00:57:48.512604"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1967], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2295], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2295], ["room_id", 1967], ["created_at", "2019-12-12 00:57:48.518742"], ["updated_at", "2019-12-12 00:57:48.518742"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2295], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 2295]] Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HYayH8CFxBptIvxbR7qPjOgPGKl5kkxqtEA2H0zLkiJj/tvSD2s66"], ["created_at", "2019-12-12 00:57:48.545989"], ["updated_at", "2019-12-12 00:57:48.545989"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.560719"], ["last_sign_in_at", "2019-12-12 00:57:48.560719"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.561765"], ["id", 2296]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2296], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.3ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:48.575958"], ["updated_at", "2019-12-12 00:57:48.575958"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.579034"], ["updated_at", "2019-12-12 00:57:48.579034"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2296], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started GET “/appointments/1968” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1968"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1968], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1968')[0m
Rendered appointments/show.html.erb within layouts/application (2.0ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2296], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 1.3ms) Started POST “/appointments.1968” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-12", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2296], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1968], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2296], ["LIMIT", 1]]
[1m[35mSQL (6.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2296], ["room_id", 1968], ["created_at", "2019-12-12 00:57:48.625735"], ["updated_at", "2019-12-12 00:57:48.625735"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 7.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2296], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$FmtAO4zreNrPBfE2GdExueKabZxwjB9K5whOrFVpCAkX01/KlqShK"], ["created_at", "2019-12-12 00:57:48.649202"], ["updated_at", "2019-12-12 00:57:48.649202"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.662749"], ["last_sign_in_at", "2019-12-12 00:57:48.662749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.663257"], ["id", 2297]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2297], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:48.676164"], ["updated_at", "2019-12-12 00:57:48.676164"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (23.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.678795"], ["updated_at", "2019-12-12 00:57:48.678795"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2297], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.8ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 1.1ms) Started GET “/appointments/1971” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1971"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1971], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1971')[0m
Rendered appointments/show.html.erb within layouts/application (1.7ms)
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2297], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 1.3ms) Started POST “/appointments.1971” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2297], ["LIMIT", 1]]
Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2297], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (3.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$SWmIaB4fWd2qMjFpiM5PQ.0T6BaRfMbj8JfVfhK3AL//5xkBy/A8W"], ["created_at", "2019-12-12 00:57:48.760380"], ["updated_at", "2019-12-12 00:57:48.760380"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.776658"], ["last_sign_in_at", "2019-12-12 00:57:48.776658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.777336"], ["id", 2298]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2298], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:57:48.788397"], ["updated_at", "2019-12-12 00:57:48.788397"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2298], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2298], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/1972” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"1972"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2298], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1972], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 1972]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2298], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ZZLOcCUQnukbjlvM/OSeveJbTnTfhfkl/TZzpcK/uaX9JH7c.W.I2"], ["created_at", "2019-12-12 00:57:48.831527"], ["updated_at", "2019-12-12 00:57:48.831527"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:57:48.833644"], ["updated_at", "2019-12-12 00:57:48.833644"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.860593"], ["last_sign_in_at", "2019-12-12 00:57:48.860593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.861277"], ["id", 2299]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2299], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2299], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.7ms) Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/rooms/1973/edit” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#edit as HTML
Parameters: {"id"=>"1973"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2299], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1973], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)
Completed 200 OK in 22ms (Views: 3.7ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/1973” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#update as HTML
Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"1973"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2299], ["LIMIT", 1]]
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1973], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4[0m [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-12-12 00:57:48.927631"], ["id", 1973]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/rooms/1973 Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET “/rooms/1973” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1973"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2299], ["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1973], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.7ms)
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2[0m [["name", "SalaTeste"], ["LIMIT", 1]]
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Er3jZukCJb64HNOkgkdfZ.TUuSenFoEJHPryTjuxbQ3dlVCWwsKTC"], ["created_at", "2019-12-12 00:57:48.972699"], ["updated_at", "2019-12-12 00:57:48.972699"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:48.986499"], ["last_sign_in_at", "2019-12-12 00:57:48.986499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.987073"], ["id", 2300]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2300], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.000683"], ["updated_at", "2019-12-12 00:57:49.000683"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.002406"], ["updated_at", "2019-12-12 00:57:49.002406"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1975], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2300], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "18:00:00"], ["user_id", 2300], ["room_id", 1975], ["created_at", "2019-12-12 00:57:49.011859"], ["updated_at", "2019-12-12 00:57:49.011859"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2300], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms) Started GET “/rooms_available/1974” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1974"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1974], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1974')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.8ms)
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2300], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 64ms (Views: 43.6ms | ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$KLwqwLrVvTPay5oMu1GJA.sivAp0HhgFKP.bo4Y.RKz7x2HKz5pQG"], ["created_at", "2019-12-12 00:57:49.119105"], ["updated_at", "2019-12-12 00:57:49.119105"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (1.0ms) Rendered users/sessions/new.html.erb within layouts/application (1.9ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:49.134284"], ["last_sign_in_at", "2019-12-12 00:57:49.134284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.134899"], ["id", 2301]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2301], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.8ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.149575"], ["updated_at", "2019-12-12 00:57:49.149575"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.151975"], ["updated_at", "2019-12-12 00:57:49.151975"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2301], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.6ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.9ms) Started GET “/rooms_available/1976” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsAvailableController#show as HTML
Parameters: {"id"=>"1976"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1976], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1976')[0m
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2301], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 1.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$RM.WT/iIcAwdVXuf93kZluktRFFOvTzGxfFz6V68jDZ3Jt49C.fUy"], ["created_at", "2019-12-12 00:57:49.201154"], ["updated_at", "2019-12-12 00:57:49.201154"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "usuario@comum.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:49.215269"], ["last_sign_in_at", "2019-12-12 00:57:49.215269"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.215882"], ["id", 2302]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2302], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.228619"], ["updated_at", "2019-12-12 00:57:49.228619"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.230552"], ["updated_at", "2019-12-12 00:57:49.230552"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2302], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (1.5ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5Q3nGzJa3BzOG.lBIIti9.q34jaaa24U3isoMaKn/nWeb8Vx7hoBq"], ["created_at", "2019-12-12 00:57:49.259987"], ["updated_at", "2019-12-12 00:57:49.259987"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.com"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:49.276329"], ["last_sign_in_at", "2019-12-12 00:57:49.276329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.277210"], ["id", 2303]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2303], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms) Rendered layouts/_header-admin.html.erb (0.7ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.296589"], ["updated_at", "2019-12-12 00:57:49.296589"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.299020"], ["updated_at", "2019-12-12 00:57:49.299020"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2303], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (2.7ms) Rendered layouts/_header-admin.html.erb (0.6ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$oLxFX9E.05tdKCD5zHIUbOsryE7pP9/O9FwA1.RZ3fcq4H1jzNJMi"], ["created_at", "2019-12-12 00:57:49.329517"], ["updated_at", "2019-12-12 00:57:49.329517"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.8ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:49.355398"], ["last_sign_in_at", "2019-12-12 00:57:49.355398"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.356127"], ["id", 2304]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2304], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m [1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.4ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#new as HTML
Rendering users/registrations/new.html.erb within layouts/application Rendered layouts/_register-form.html.erb (1.4ms) Rendered users/registrations/new.html.erb within layouts/application (19.7ms)
Completed 200 OK in 123ms (Views: 122.1ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$of3nfQAm1yAgGFyRkFMrBOEKHqHugnLlsoEt9248iSLd.MhOtBFYa"], ["created_at", "2019-12-12 00:57:49.551847"], ["updated_at", "2019-12-12 00:57:49.551847"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:49.553660"], ["last_sign_in_at", "2019-12-12 00:57:49.553660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:49.554134"], ["id", 2305]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 89ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2305], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.2ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "a@a.com"], ["encrypted_password", "$2a$04$NQx35r0fmt5F/wWs3Kz0TO8cPD56CxZnI9FRqbfQtOoQXHNx3pJ3."], ["created_at", "2019-12-12 00:57:49.655782"], ["updated_at", "2019-12-12 00:57:49.655782"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (0.3ms)
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (0.9ms) Rendered users/sessions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "a@a.com"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2019-12-12 00:57:49.683142"], ["last_sign_in_at", "2019-12-12 00:57:49.683142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.683738"], ["id", 2306]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2306], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/2306/edit” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"2306"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2306], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)
Completed 200 OK in 25ms (Views: 23.7ms | ActiveRecord: 0.5ms) Started PUT “/users/2306” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#update as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"2306"}
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2306], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2306], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3[0m [["email", "novo_email@a.com"], ["id", 2306], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6[0m [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-12-12 00:57:49.754100"], ["id", 2306]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to www.example.com/ Completed 302 Found in 158ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 2306], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (1.1ms) Rendered layouts/_header-user.html.erb (0.5ms)
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "novo_email@a.com"], ["LIMIT", 1]] [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m